/* The Present Perfect — stylesheet
   Direction: editorial. Warm paper, deep pine panels, one warm accent.
   No colour is named directly in the rules below. Every value is a role,
   defined once in the tokens block: Terracotta Sunrise, Nicole's palette
   with the accent deepened so it passes contrast as both a button fill and
   as text. To change the whole site's direction, edit that one block. */

/* ---------- Tokens ----------
   Layout, type and colour all live here. Every rule below leans on these, so
   they have to be declared before anything uses them: an undefined custom
   property makes the whole declaration invalid, which silently drops padding,
   max-width and border-radius rather than failing loudly. */

:root {
  --page: 1140px;          /* the measure every band is centred inside */
  --gutter: 32px;          /* minimum breathing room at the page edge */
  --radius: 4px;           /* the one corner radius: cards, frames, fields */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colour — Terracotta Sunrise. Contrast measured, not chosen by eye:
     body text 22312F on paper F7F3EC 11.4:1 · text on dark 9.6:1
     button label F7F3EC on accent A63F19 7.4:1 · accent text 8A3413 on paper 7.4:1
     Roles:
       --surface      the page itself (paper)
       --surface-2    the raised panel: cards, the framed photo
       --surface-3    one step further in: form fields, insets
       --dark         the deep panel: hero band, footer, contact block
       --dark-2       the very bottom of the page, hover on dark
       --on-dark      body text sitting on --dark
       --on-dark-dim  secondary text on --dark
       --ink          body and heading text on --surface
       --ink-dim      captions, metadata, form hints on --surface
       --accent       the only call-to-action colour. Nothing else.
       --accent-deep  button hover and pressed
       --on-accent    the label colour inside a button
       --accent-text  the accent when it has to be read as text on --surface
       --glow         the soft light behind a headline
       --rule         hairlines, dividers, card edges
       --sage         illustration and chart fills only. Never a button. */
  --surface: #f7f3ec;
  --surface-2: #ffffff;
  --surface-3: #efe9df;
  --dark: #173e38;
  --dark-2: #0f2a26;
  --on-dark: #f7f3ec;
  --on-dark-dim: rgba(247, 243, 236, 0.76);
  --ink: #22312f;
  --ink-dim: #55635f;
  --accent: #a63f19;
  --accent-deep: #8a3413;
  --on-accent: #f7f3ec;
  --accent-text: #8a3413;
  --glow: rgba(166, 63, 25, 0.18);
  --rule: #e6ded2;
  --rule-strong: #cdc2b1;
  --sage: #8aa79b;
  --shadow: 20 40 30;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

img { display: block; max-width: 100%; }

a { color: inherit; }

/* Long words, URLs and email addresses must not push the page sideways on a
   narrow screen. */
h1, h2, h3, p, li, blockquote { overflow-wrap: break-word; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 22px var(--gutter);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

/* Once scrolled the bar gains a frosted backdrop, tinted with the surface
   so it works whether the palette is light or dark. */
.site-header.is-stuck {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.site-nav {
  display: flex;
  gap: 40px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-dim);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 5px;
  transition: color 0.25s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Circular portrait button in the top corner */
.avatar {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--dark), var(--dark-2));
  border: 1px solid var(--rule-strong);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, var(--glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 4px var(--glow);
}
.avatar:hover::before { opacity: 1; }

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 48px var(--gutter) 104px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  left: -14%;
  width: 62vw;
  height: 62vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 22px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 6.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 30px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-text);
}

.hero p {
  color: var(--ink-dim);
  max-width: 38ch;
  margin: 0 0 20px;
  font-size: 1.06rem;
}

.hero .hero-lede {
  color: var(--ink);
  font-size: 1.2rem;
}

.hero-media { position: relative; }

.hero-media .frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 40px 80px -30px rgb(var(--shadow) / 0.4);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.hero-media .frame:hover img { transform: scale(1.03); }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  opacity: 0.4;
  z-index: -1;
}

/* ---------- Generic light sections ---------- */

.section {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 104px var(--gutter);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.section h2 em { font-style: italic; color: var(--accent-text); }

/* Two sections of a kind sit directly after one another (Services does this).
   The rule between them already supplies the pause, so the second drops its
   top padding instead of leaving a double gap. */
.section--tight { padding-top: 0; }

.section > p {
  color: var(--ink-dim);
  max-width: 58ch;
  font-size: 1.04rem;
}

.rule {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---------- About: portrait beside the biography ---------- */

.about {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 104px var(--gutter);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;   /* the words get the room, not the photo */
  gap: 72px;
  align-items: center;
}

.about h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.about h2 em { font-style: italic; color: var(--accent-text); }

.about p {
  color: var(--ink-dim);
  max-width: 54ch;
  margin: 0 0 20px;
  font-size: 1.04rem;
}

/* The one line in the biography that is a promise rather than an explanation. */
.about .signature {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin: 30px 0 26px;
  max-width: 46ch;
}

.about-photo {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  background: var(--surface-3);
}

/* ---------- Cards ---------- */

.cards {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* A grid of four (the four doors on Home and Services) needs narrower
   columns, or the last card of the row is stranded on its own line. */
.cards--four { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 32px 28px 30px;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgb(var(--shadow) / 0.05);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--rule-strong);
  box-shadow: 0 22px 44px -26px rgb(var(--shadow) / 0.42);
}

.card:hover::before { transform: scaleX(1); }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 14px 0 12px;
}

.card p { color: var(--ink-dim); margin: 0 0 16px; font-size: 0.985rem; }

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-dim);
  font-size: 0.94rem;
}

.card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.card ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  opacity: 0.85;
}

/* A card that sends the reader to another page, rather than a list of what
   the service includes. Sits where a card's bullets would. */
.card-more { margin: 18px 0 0; font-size: 0.94rem; }

.card-more a {
  color: var(--accent-text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.card-more a:hover { color: var(--accent); }

/* Cards placed on the deep panel need their own surfaces */
.panel .cards { margin-top: 44px; }

.panel .card {
  background: var(--surface-3);
  border-color: rgba(255, 255, 255, 0.12);
}

.panel .card h3 { color: var(--on-dark); }
.panel .card p, .panel .card ul { color: var(--on-dark-dim); }

/* ---------- Pull quote ---------- */

.quote {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 96px var(--gutter);
  text-align: center;
}

.quote blockquote {
  margin: 0 auto;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.quote blockquote em {
  font-style: italic;
  color: var(--accent-text);
}

.quote cite {
  display: block;
  margin-top: 26px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
  transition: background 0.4s var(--ease);
}

.contact::before {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 104px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* The sign-off sits on the baseline of the block beside it rather than
   floating in the middle of a tall column. */
.contact-aside { align-self: end; }

.contact h2, .contact h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--on-dark);
}

.contact h1 em, .contact h2 em { font-style: italic; color: var(--accent-text); }

.contact p { color: var(--on-dark-dim); }

.contact-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.contact-list li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--on-dark-dim);
  font-size: 0.96rem;
}

.contact-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }

.contact-list strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-list a { color: var(--on-dark); text-decoration-color: rgba(255, 255, 255, 0.32); text-underline-offset: 3px; }
.contact-list a:hover { text-decoration-color: var(--accent); }

/* ---------- Buttons ---------- */

/* A lone action that follows a grid of cards needs the same beat of air the
   cards themselves took to arrive. */
.cta-row { margin-top: 44px; }

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 15px 28px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.button::after {
  content: "→";
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.button:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px var(--accent);
}

.button:hover::after { transform: translateX(4px); }

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.panel .button--ghost,
.contact .button--ghost {
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.34);
}

.button--ghost::after { content: "↗"; }

.button--ghost:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border-color: var(--ink);
  box-shadow: none;
}

.panel .button--ghost:hover,
.contact .button--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--on-dark);
}

/* ---------- Forms ---------- */

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  margin-bottom: 9px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--on-dark);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }

.field input:hover,
.field textarea:hover { border-color: rgba(255, 255, 255, 0.34); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.field textarea { min-height: 150px; resize: vertical; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--dark-2);
  color: var(--on-dark-dim);
  transition: background 0.4s var(--ease);
}

.site-footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 40px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.site-footer a { color: var(--on-dark-dim); text-decoration: none; transition: color 0.25s var(--ease); }
.site-footer a:hover { color: var(--accent-text); }

/* ---------- Long-form text pages (privacy) ---------- */

.legal { max-width: 780px; }

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.legal h1 em { font-style: italic; color: var(--accent-text); }

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  letter-spacing: -0.01em;
  margin: 46px 0 12px;
}

.legal p, .legal li { color: var(--ink-dim); max-width: 68ch; }
.legal ul { list-style: none; padding-left: 0; }
.legal li { position: relative; padding-left: 20px; margin-bottom: 10px; }

/* The same middot the cards use, so every list on the site marks its items
   the one way. */
.legal li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}
.legal strong { color: var(--ink); }
.legal a { color: var(--accent-text); text-underline-offset: 3px; }
.legal-back { margin-top: 48px; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
  .hero,
  .about,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  /* Five nav items are roughly 400px of text before any gaps, so below about
     560px they cannot share a row with the avatar. They wrap to their own
     lines inside a header that now stacks and centres. */
  .site-nav {
    gap: 14px 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* On a phone the portrait follows the heading, so the first thing read is
     still the name. */
  .about > div:first-child { order: 2; }
  .about > div:last-child { order: 1; }

  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
  .cards--four { grid-template-columns: repeat(2, 1fr); }

  .hero { padding-bottom: 72px; }
  .section, .about, .contact-inner, .quote { padding-top: 72px; padding-bottom: 72px; }

  .hero-media::after { display: none; }

  .site-nav { gap: 22px; }
  .site-nav a { font-size: 12px; letter-spacing: 0.04em; }
  .site-header { padding: 18px var(--gutter); }

  /* .hero-media::after is inset 22px, and a 32px gutter leaves it only a
     10px landing — it reads as a misaligned border rather than intent. */
  .contact-inner { gap: 48px; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .cards--four { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }

  /* On a phone the avatar moves to its own row above the links rather than
     stealing 44px from a nav that already needs every pixel. */
  .site-header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 14px;
    padding: 16px var(--gutter);
  }

  .site-nav { gap: 12px 18px; width: 100%; }
  .site-nav a { font-size: 11.5px; letter-spacing: 0.03em; }

  .quote blockquote { max-width: 100%; }
}
