:root {
  --paper: #F3EEE4;
  --paper-2: #E9E2D3;
  --card: #FBF8F1;
  --ink: #1C2A20;
  --ink-2: #47524A;
  --muted: #7D8278;
  --green: #2F4A35;
  --clay: #C2643C;
  --cobalt: #2A44C4;
  --graphite: #5E5E58;
  --line: #D6CDBB;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --hand: "Shadows Into Light Two", "Bradley Hand", cursive;
  --sign: "Mrs Saint Delafield", "Snell Roundhand", cursive;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper tooth */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 450; margin: 0; letter-spacing: -.02em; color: var(--green); }
em { font-style: italic; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--max), 100% - 3rem); margin-inline: auto; }

/* 3D renders sit on white; multiply drops the white into the paper */
.sculpture img, .product-visual .stairs, .service-grid img { mix-blend-mode: multiply; }

/* ---------- wordmark: two dots, two people ---------- */
.wordmark {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font: 500 2rem/1 var(--serif); letter-spacing: -.035em;
  color: var(--green); text-decoration: none;
}
.dots { display: inline-flex; gap: 5px; margin: 0 0 4px 3px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.dots i + i { background: var(--clay); }
.wordmark.small { font-size: 1.35rem; }
.wordmark.small .dots i { width: 5px; height: 5px; }

.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1.6rem 0 0; }
nav { display: flex; gap: 2.2rem; font-size: .95rem; }
nav a { text-decoration: none; padding: .3rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
nav a:hover { background-size: 100% 1px; }
.nav-cta { color: var(--clay); font-weight: 600; }

/* ---------- buttons, links, labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65rem; cursor: pointer;
  background: var(--green); color: var(--card); border: 0;
  padding: .95rem 1.5rem; border-radius: 4px;
  font: 500 1rem var(--sans); text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #22382A; transform: translateY(-1px); }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }
.link { color: var(--cobalt); font-weight: 600; text-decoration: none; }
.link::after { content: " →"; transition: margin .2s; }
.link:hover::after { margin-left: .2em; }
.section-label {
  display: flex; align-items: center; gap: .8rem; margin-bottom: 2.4rem;
  font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2);
}
.section-label span { font-family: var(--mono); color: var(--clay); letter-spacing: 0; font-weight: 400; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* handwritten notes: the 2D layer */
.note { font: 400 1.25rem/1.15 var(--hand); color: var(--graphite); transform: rotate(-4deg); position: absolute; white-space: nowrap; }
.pencil { fill: none; stroke: var(--graphite); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.pencil.thin { stroke-width: 1; opacity: .55; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: center; padding: 3.5rem 0 5rem; }
.hero h1 { font-size: clamp(2.8rem, 5.6vw, 5.1rem); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 em { color: var(--clay); font-weight: 400; }
.lede { margin-top: 1.8rem; max-width: 30rem; font-size: 1.08rem; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.8rem; margin-top: 2rem; }
.underline { width: 140px; margin-top: 2.4rem; }
.underline path { fill: none; stroke: var(--cobalt); stroke-width: 2.2; stroke-linecap: round; }

.sculpture { position: relative; margin: 0; }
.sculpture img { width: 100%; }
.sketch { position: absolute; inset: 0; width: 100%; height: 100%; }
.notes .n1 { top: -9%; left: 25%; }
.notes .n3 { top: 30%; left: 80%; transform: rotate(-3deg); }
.notes .n4 { bottom: 15%; left: 1%; }
.notes .n5 { bottom: -1%; left: 40%; transform: rotate(2deg); }

/* draw-in on load */
.sketch path, .sketch circle, .sketch ellipse { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s ease-out forwards; animation-delay: .5s; }
.notes .note { opacity: 0; animation: fade .8s ease-out forwards; }
.notes .n1 { animation-delay: .9s } .notes .n3 { animation-delay: 1.2s } .notes .n4 { animation-delay: 1.5s } .notes .n5 { animation-delay: 1.7s }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- product ---------- */
.product, .services, .team, .contact { padding: 4.5rem 0; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.product h2, .services h2, .contact h2 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1.02; }
.kicker { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cobalt); margin: 1rem 0 1.4rem; }
.big { font: italic 400 1.5rem/1.3 var(--serif); color: var(--ink); }
.product-copy > p:not(.kicker):not(.big) { color: var(--ink-2); max-width: 32rem; }
.intervals { list-style: none; display: flex; gap: 0; padding: 0; margin: 1.6rem 0 2rem; font: .78rem var(--mono); color: var(--ink-2); }
.intervals li { display: flex; align-items: center; }
.intervals li + li::before { content: ""; width: 1.6rem; height: 1px; background: var(--graphite); opacity: .5; margin: 0 .5rem; }
.intervals b { font-weight: 400; padding: .35rem .6rem; border-radius: 99px; background: var(--paper-2); }
.intervals li:nth-child(2) b { background: #DCE3D3; } .intervals li:nth-child(3) b { background: #EED9B4; } .intervals li:nth-child(4) b { background: #EBC8B3; } .intervals li:nth-child(5) b { background: var(--green); color: var(--card); }

.product-visual { position: relative; display: grid; place-items: center; min-height: 520px; }
.product-visual .stairs { position: absolute; width: 74%; right: -6%; bottom: -4%; }
.phone {
  position: relative; z-index: 1; margin: 0 22% 0 0; width: min(310px, 80%);
  background: var(--card); border: 1px solid var(--line); border-radius: 30px;
  padding: 1.1rem 1rem 1rem; font-size: .88rem;
  box-shadow: 0 1px 0 #fff inset, 0 40px 60px -30px rgba(40, 45, 30, .35), 0 8px 18px -10px rgba(40, 45, 30, .25);
  transform: rotate(-3deg);
}
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: .2rem .3rem .9rem; border-bottom: 1px solid var(--paper-2); margin-bottom: .9rem; }
.phone-top b { color: var(--green); font-weight: 600; }
.phone-top span { font-size: .72rem; background: var(--paper-2); padding: .2rem .55rem; border-radius: 99px; color: var(--ink-2); }
.msg { max-width: 86%; padding: .65rem .85rem; border-radius: 14px; margin-bottom: .6rem; line-height: 1.4; }
.msg small { display: block; margin-top: .25rem; font-size: .74rem; color: var(--muted); }
.msg i { color: var(--clay); font-style: normal; font-weight: 600; }
.msg.tutor { background: var(--paper-2); border-bottom-left-radius: 4px; }
.msg.me { margin-left: auto; background: var(--green); color: var(--card); border-bottom-right-radius: 4px; }
.phone-input { display: flex; justify-content: space-between; align-items: center; margin-top: .9rem; padding: .55rem .55rem .55rem .9rem; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: .78rem; }
.phone-input i { width: 26px; height: 26px; border-radius: 50%; background: var(--clay); }
.product-visual .n6 { top: 6%; right: 4%; transform: rotate(5deg); }

/* ---------- services ---------- */
.services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3rem; }
.services-head p { color: var(--ink-2); max-width: 30rem; margin: 0; }
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.service-grid li { padding: 1.4rem 1.6rem 2rem; border-right: 1px solid var(--line); transition: background .3s; }
.service-grid li:first-child { padding-left: 0; }
.service-grid li:last-child { border-right: 0; padding-right: 0; }
.service-grid img { width: 150px; margin: 0 0 .6rem -14px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.service-grid li:hover img { transform: translateY(-6px) rotate(-3deg); }
.service-grid h3 { font-size: 1.45rem; line-height: 1.15; margin-bottom: .6rem; }
.service-grid p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 3rem; }
.team-intro { position: relative; font: italic 400 1.6rem/1.3 var(--serif); color: var(--ink); padding-right: 1rem; }
.team-intro .n7 { position: static; display: block; margin-top: 1.4rem; font-style: normal; color: var(--clay); }
.person { display: grid; grid-template-columns: 76px 1fr; gap: 1.3rem; align-items: start; padding-left: 2rem; border-left: 1px solid var(--line); }
.initials { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--green); font: 400 1.7rem/1 var(--serif); }
.initials.dark { background: var(--green); color: var(--card); }
.person h3 { font-size: 1.8rem; line-height: 1.1; }
.person .role { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--clay); margin: .55rem 0 1rem; }
.person p { color: var(--ink-2); font-size: .95rem; }
.person .creds { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .75rem; }
.signature { display: block; font: 400 2.6rem/1 var(--sign); color: var(--green); opacity: .85; margin-top: .4rem; transform: rotate(-3deg); transform-origin: left; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; border-top: 1px solid var(--line); margin-top: 1rem; }
.contact .section-label { margin-bottom: 2rem; }
.contact h2 em { color: var(--clay); }
.contact-copy > p { color: var(--ink-2); max-width: 26rem; margin-top: 1.2rem; }
.card {
  margin-top: 2.6rem; width: 270px; padding: 1.4rem 1.4rem 1.6rem;
  font: 1.45rem/1.5 var(--hand); color: var(--graphite);
  background: repeating-linear-gradient(var(--card) 0 calc(1.5em - 1px), #C9D3E6 calc(1.5em - 1px) 1.5em), var(--card);
  background-position: 0 1.4rem;
  border-left: 2px solid #E6A99A;
  box-shadow: 0 18px 30px -18px rgba(40, 45, 30, .35);
  transform: rotate(-4deg);
}
.contact-form { display: grid; gap: 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: .4rem; font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.contact-form small { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: .75rem .85rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 74, 53, .15); }
.contact-form .btn { justify-self: start; }
.contact-form .btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute !important; left: -9999px; }
.form-status { margin: 0; min-height: 1.5em; font-size: .95rem; }
.form-status.ok { color: var(--green); font: 1.35rem var(--hand); }
.form-status.err { color: #A23B1C; }

/* ---------- footer ---------- */
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 2rem 0 2.6rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero, .product-grid, .services-head, .contact { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; gap: 1rem; }
  .sculpture { margin: 0 -1rem; }
  .services-head { gap: 1rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid li { padding: 1.4rem 1.2rem 2rem !important; border-bottom: 1px solid var(--line); }
  .service-grid li:nth-child(2n) { border-right: 0; }
  .team-grid { grid-template-columns: 1fr; gap: 2rem; }
  .person { padding-left: 0; border-left: 0; }
  .contact { gap: 2.5rem; }
  .card { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  nav { gap: 1.1rem; font-size: .88rem; }
  nav a:not(.nav-cta):first-child { display: none; }
  .note { font-size: 1rem; }
  .notes .n3 { display: none; }
  .product-visual { min-height: 440px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid li { border-right: 0 !important; }
  .contact-form { padding: 1.3rem; }
  .contact-form .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .sketch * { stroke-dashoffset: 0 !important; }
  .notes .note { opacity: 1 !important; }
}
