:root {
    --mist: #edf2f1;
    --paper: #f8faf9;
    --sand: #ebe6dc;
    --ink: #1e3236;
    --ink-soft: #46595c;
    --tide: #5e8c8a;
    --deep: #2f5d62;
    --line: #c9d5d3;
    --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
    --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
  body {
    margin: 0;
    background: var(--mist);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
  }
  img, svg { max-width: 100%; }
  a { color: var(--deep); text-underline-offset: 0.2em; }
  a:hover { color: var(--ink); }
  :focus-visible { outline: 3px solid var(--tide); outline-offset: 3px; border-radius: 2px; }

  .wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

  /* Header */
  .site-header { position: sticky; top: 0; z-index: 10; background: rgba(237, 242, 241, 0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; flex-wrap: wrap; }
  .brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--ink); text-decoration: none; }
  .nav { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.95rem; }
  .nav a { color: var(--ink-soft); text-decoration: none; }
  .nav a:hover { color: var(--ink); text-decoration: underline; }

  /* Buttons */
  .button { display: inline-block; background: var(--deep); color: #fff; padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 500; text-decoration: none; transition: background 0.2s ease; }
  .button:hover { background: var(--ink); color: #fff; }

  /* Hero */
  .hero { padding-block: clamp(3rem, 9vw, 7rem); }
  .hero .wrap { display: grid; gap: 3rem; align-items: center; grid-template-columns: 1.25fr 0.75fr; }
  .hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.5rem, 6.4vw, 4.4rem); line-height: 1.06; letter-spacing: -0.015em; margin: 0 0 1.4rem; }
  .hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; margin: 0 0 2rem; }
  .hero-actions { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }

  /* The one memorable thing: a slow breathing shape */
  .breath { display: grid; place-items: center; justify-items: center; gap: 1.2rem; }
  .breath-shape { position: relative; width: min(300px, 70vw); aspect-ratio: 1; }
  .breath-shape span { position: absolute; inset: 0; border-radius: 50%; animation: breathe 9s ease-in-out infinite alternate; }
  .breath-shape span:nth-child(1) { background: rgba(94, 140, 138, 0.18); }
  .breath-shape span:nth-child(2) { inset: 14%; background: rgba(94, 140, 138, 0.28); animation-delay: -0.6s; }
  .breath-shape span:nth-child(3) { inset: 30%; background: rgba(47, 93, 98, 0.55); animation-delay: -1.2s; }
  .breath-caption { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.15rem; color: var(--ink-soft); }
  @keyframes breathe {
    from { transform: scale(0.82); }
    to   { transform: scale(1.04); }
  }
  @media (prefers-reduced-motion: reduce) {
    .breath-shape span { animation: none; }
    html { scroll-behavior: auto; }
  }

  /* Sections */
  .section { padding-block: clamp(3.5rem, 8vw, 6rem); }
  .section-paper { background: var(--paper); }
  .section-sand { background: var(--sand); }
  .section h2, .section h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 1.5rem; }
  .split { display: grid; gap: 2rem 4rem; grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .split h2, .split h1 { margin: 0; }
  .prose p { max-width: 38rem; margin: 0 0 1.2rem; }
  .prose p:last-child { margin-bottom: 0; }
  .prose .fine { font-size: 0.95rem; color: var(--ink-soft); }

  /* About photo */
  .about-head h2 { margin: 0 0 1.5rem; }
  .portrait { display: block; width: 100%; max-width: 21rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }

  /* Services */
  .services { margin: 0; }
  .services div { padding-block: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: 0.4rem 3rem; grid-template-columns: 0.8fr 1.2fr; }
  .services div:last-child { border-bottom: 1px solid var(--line); }
  .services dt { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
  .services dd { margin: 0; color: var(--ink-soft); max-width: 36rem; }

  .services div { grid-template-columns: 6rem 0.8fr 1.2fr; align-items: center; }
  .svc-img { width: 5.5rem; height: 5.5rem; border-radius: 22px; }
  .services dt a { color: inherit; text-decoration: none; }
  .services dt a:hover { color: var(--deep); text-decoration: underline; text-underline-offset: 0.2em; }

  /* Approaches */
  .approaches { margin: 0 0 1.2rem; padding-left: 1.2rem; max-width: 38rem; }
  .approaches li { margin-bottom: 0.35rem; }

  /* Steps: a real sequence, so the visual order carries meaning */
  .steps { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
  .steps li { position: relative; padding: 0 0 2rem 2.2rem; border-left: 2px solid var(--tide); }
  .steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
  .steps li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--deep); }
  .steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin: 0 0 0.3rem; }
  .steps p { margin: 0; color: var(--ink-soft); }

  /* Fees */
  .fee-list { margin: 0 0 1.5rem; max-width: 30rem; }
  .fee-list div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
  .fee-list div:first-child { border-top: 1px solid var(--line); }
  .fee-list dt { margin: 0; }
  .fee-list dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; }
  .fees p { max-width: 38rem; margin: 0 0 1rem; }

  /* Contact */
  .contact-grid { display: grid; gap: 2.5rem 4rem; grid-template-columns: 1fr 1fr; align-items: start; }
  .contact-line { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 300; word-break: break-word; }
  .contact-grid p.contact-row { margin: 0 0 0.6rem; }
  .details { margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--ink-soft); }
  .details li { margin-bottom: 0.4rem; }
  .note { border-left: 3px solid var(--tide); padding: 0.2rem 0 0.2rem 1.2rem; color: var(--ink-soft); max-width: 30rem; }
  .note + .note { margin-top: 1.5rem; }
  .note strong { color: var(--ink); font-weight: 600; }

  /* Footer */
  .site-footer { padding-block: 2.5rem; font-size: 0.9rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
  .site-footer p { margin: 0 0 0.4rem; }

  /* Small screens */
  @media (max-width: 760px) {
    .hero .wrap, .split, .services div, .contact-grid { grid-template-columns: 1fr; }
    .svc-img { width: 4.5rem; height: 4.5rem; }
    .hero .wrap { gap: 2.5rem; }
    .breath { order: 2; }
    .site-header .wrap { padding-block: 0.7rem; }
  }

/* Focus areas dropdown */
.dropdown { position: relative; }
.dropdown-toggle { font: inherit; color: var(--ink-soft); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.dropdown-toggle:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.dropdown-toggle::after { content: ""; width: 0.4em; height: 0.4em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.2s ease; }
.dropdown-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.dropdown-menu { position: absolute; top: calc(100% + 0.9rem); left: -1rem; min-width: 14.5rem; margin: 0; padding: 0.5rem; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(30, 50, 54, 0.12); }
.dropdown-menu[hidden] { display: none; }
.dropdown-menu a { display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 0.8rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.dropdown-menu a:hover { background: var(--mist); color: var(--ink); text-decoration: none; }
.dropdown-menu .all { margin-bottom: 0.3rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; color: var(--deep); font-weight: 500; }
.dd-img { width: 2.75rem; height: 2.75rem; object-fit: cover; border-radius: 10px; flex: none; }
@media (max-width: 760px) {
  .dropdown { flex-basis: 100%; }
  .dropdown-menu { position: static; box-shadow: none; margin-top: 0.6rem; }
}

/* Language switch */
.lang-switch { display: flex; gap: 0.7rem; padding-left: 1rem; border-left: 1px solid var(--line); font-size: 0.9rem; }

/* How I work: approach cards */
.mod-intro { max-width: 38rem; color: var(--ink-soft); font-size: 1.15rem; margin: 0 0 2rem; }
.mod-grid { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 62rem; }
.mod-card a { display: block; height: 100%; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.mod-card a:hover { border-color: var(--tide); transform: translateY(-2px); color: var(--ink); text-decoration: none; }
.mod-card img { width: 3.5rem; height: 3.5rem; border-radius: 12px; display: block; margin-bottom: .9rem; }
.mod-card h2 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.2; margin: 0 0 .4rem; }
.mod-card p { margin: 0 0 .8rem; color: var(--ink-soft); font-size: .98rem; }
.mod-card .more { color: var(--deep); font-weight: 500; font-size: .95rem; }
.mod-guide { max-width: 38rem; margin: 0 0 2rem; }
.mod-guide h2 { font-family: var(--serif); font-weight: 300; font-size: 1.5rem; margin: 0 0 .6rem; }
.mod-guide ul { padding-left: 1.2rem; margin: 0 0 1rem; }
@media (prefers-reduced-motion: reduce) { .mod-card a { transition: none; } .mod-card a:hover { transform: none; } }

/* Header layout: language switch + mobile menu button */
.site-header .wrap { justify-content: flex-start; }
.brand { margin-right: auto; }
.nav { order: 2; }
.lang-switch { order: 3; margin-left: 1.4rem; }
.nav-toggle { display: none; order: 4; }
@media (max-width: 760px) {
  .site-header .wrap { gap: 0.6rem 0.9rem; }
  .brand { order: 1; font-size: 1.2rem; }
  .lang-switch { order: 2; margin-left: 0; border-left: 0; padding-left: 0; gap: 0.6rem; font-size: 0.85rem; }
  .lang-switch a { color: var(--ink-soft); text-decoration: none; padding: 0.5rem 0.1rem; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: 0 0.7rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { order: 5; flex-basis: 100%; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0.3rem 0 0.6rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
  .js .nav:not(.open) { display: none; }
  .nav > a, .nav > .dropdown > .dropdown-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--line); }
  .nav > .dropdown { flex-basis: auto; }
  .nav > .dropdown > .dropdown-toggle { color: var(--ink-soft); }
  .nav > a:last-child { border-bottom: 0; }
  .dropdown-menu { margin: 0.3rem 0 0.5rem; background: var(--mist); border: 0; }
  .dropdown-menu a { padding: 0.6rem 0.8rem; }
}
.lang-switch a { color: var(--ink-soft); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); text-decoration: underline; }
