:root {
  --bg: #f5f2ec;
  --paper: #ffffff;
  --ink: #201d1a;
  --muted: #82786d;
  --line: rgba(32,29,26,0.1);
  --accent: #c1440e;
  --accent-soft: #f4e2d8;
  --radius: 4px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sans { font-family: "Work Sans", -apple-system, sans-serif; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245,242,236,0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { font-family: "Fraunces", serif; font-weight: 600; font-size: 21px; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
.brand em { font-style: italic; color: var(--accent); }
.nav { display: flex; gap: 34px; font-family: "Work Sans", sans-serif; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding-bottom: 2px; }
.nav a.active, .nav a:hover { border-bottom: 1.5px solid var(--accent); }

main { position: relative; }

/* hero */
.hero { padding: 90px 0 70px; }
.eyebrow { font-family: "Work Sans", sans-serif; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: block; font-weight: 600; }
h1 { font-size: 54px; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 24px; font-weight: 500; max-width: 780px; }
h1 em { font-style: italic; color: var(--accent); }
.lede { font-family: "Work Sans", sans-serif; font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 0 36px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Work Sans", sans-serif;
  padding: 13px 26px; border-radius: 2px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* sections */
.section { padding: 66px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 44px; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; margin: 0; font-weight: 500; }
.section-head p { font-family: "Work Sans", sans-serif; color: var(--muted); margin: 0; font-size: 14.5px; max-width: 340px; }

.masonry { column-count: 3; column-gap: 18px; }
.m-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.m-ph { width: 100%; display: block; }
.m-cap { padding: 14px 16px; font-family: "Work Sans", sans-serif; }
.m-cap b { display: block; font-size: 14px; margin-bottom: 2px; }
.m-cap span { font-size: 12.5px; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

.service-row { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: "Work Sans", sans-serif; }
.service-row:first-child { padding-top: 0; }
.service-row h3 { font-family: "Fraunces", serif; font-size: 20px; font-weight: 500; margin: 0; }
.service-row span { color: var(--muted); font-size: 13.5px; }

.team-card { text-align: left; }
.team-ph { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius); margin-bottom: 14px; }
.team-card b { display: block; font-family: "Fraunces", serif; font-size: 18px; font-weight: 500; }
.team-card span { font-family: "Work Sans", sans-serif; color: var(--muted); font-size: 13px; }

.quote { font-family: "Fraunces", serif; font-style: italic; font-size: 26px; line-height: 1.5; max-width: 720px; color: var(--ink); }
.quote-attr { font-family: "Work Sans", sans-serif; font-size: 13px; color: var(--muted); margin-top: 18px; display: block; }

.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.product { font-family: "Work Sans", sans-serif; }
.product-ph { width: 100%; aspect-ratio: 1; border-radius: var(--radius); margin-bottom: 14px; }
.product h3 { font-family: "Fraunces", serif; font-size: 17px; font-weight: 500; margin: 0 0 4px; }
.product .price { color: var(--accent); font-weight: 600; font-size: 14px; }
.product .desc { color: var(--muted); font-size: 13px; margin-top: 4px; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-family: "Work Sans", sans-serif; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .nav { display: none; }
  h1 { font-size: 36px; }
  .masonry { column-count: 1; }
  .grid-3, .product-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* --- decor: paper grain + ink blots --- */
.grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>"); }
.ink-field { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ink { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .28; will-change: transform; }
.ink-a { width: 380px; height: 380px; top: -100px; right: -60px; background: var(--accent-soft); animation: inkdrift 24s ease-in-out infinite; }
.ink-b { width: 260px; height: 260px; top: 520px; left: -90px; background: #d8c4d4; animation: inkdrift 28s ease-in-out infinite reverse; }
@keyframes inkdrift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(26px,-24px); } }
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* --- reveal-on-scroll --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: .02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .2s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .26s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .32s; }
.reveal-stagger.in-view > * { opacity: 1; transform: none; }

/* --- masonry hover tilt --- */
.m-item { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.m-item:hover { transform: translateY(-5px) rotate(-0.4deg); box-shadow: 0 18px 40px -22px rgba(32,29,26,0.25); }
.team-card { transition: transform .3s var(--ease); }
.team-card:hover .team-ph { transform: scale(1.03); }
.team-ph { transition: transform .3s var(--ease); }

/* --- modal (warm theme) --- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(32,29,26,0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 440px; width: 100%; padding: 32px; position: relative;
  transform: translateY(14px) scale(.98); transition: transform .3s var(--ease);
  box-shadow: 0 30px 80px -30px rgba(32,29,26,.35);
}
.modal-overlay.open .modal-panel { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1; font-family: "Work Sans", sans-serif; }
.modal-close:hover { color: var(--ink); }
.modal-panel h3 { margin: 0 0 8px; font-size: 24px; font-weight: 500; }
.modal-panel p.modal-sub { font-family: "Work Sans", sans-serif; color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.modal-panel label { display: block; font-family: "Work Sans", sans-serif; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.modal-panel input, .modal-panel select, .modal-panel textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink); padding: 10px 12px; font-size: 14px; margin-bottom: 16px; font-family: "Work Sans", sans-serif;
}
.modal-panel input:focus, .modal-panel select:focus, .modal-panel textarea:focus { outline: none; border-color: var(--accent); }
.modal-panel .btn { width: 100%; justify-content: center; border: none; cursor: pointer; font-family: "Work Sans", sans-serif; }
.form-step, .success-step { display: block; }
.success-step { display: none; }
.modal-panel.success .form-step { display: none; }
.modal-panel.success .success-step { display: block; text-align: center; }
.success-step .check { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 22px; }
.success-step .ticket { font-family: "Work Sans", sans-serif; font-size: 13px; color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 4px; padding: 10px 14px; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .ink { animation: none !important; }
  .reveal, .reveal-stagger > * { transition: none !important; opacity: 1 !important; transform: none !important; }
}

.ph1 { background: linear-gradient(135deg, #e8d5c4, #d4a373); }
.ph2 { background: linear-gradient(135deg, #d8c4d4, #a37395); }
.ph3 { background: linear-gradient(135deg, #c4d4c8, #739578); }
.ph4 { background: linear-gradient(135deg, #d4c8b8, #9c8563); }
.ph5 { background: linear-gradient(135deg, #c8d0d8, #6b7f95); }
.ph6 { background: linear-gradient(135deg, #e0c4c4, #b06a6a); }
