:root {
    --bg: #fbfbfa;
    --bg-raised: #f3f3f0;
    --ink: #17191d;
    --muted: #5b5f66;
    --hairline: #e2e2dd;
    --accent: #1b4d3e;
    --accent-soft: #e8efec;
    --pad: clamp(24px, 4.5vw, 88px);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }

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

  .wrap {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  a { color: inherit; text-decoration: none; }

  /* ---------- Header ---------- */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: transform 0.5s var(--ease), background 0.3s ease, border-color 0.3s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
  }
  header.solid {
    background: rgba(251, 251, 250, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--hairline);
  }
  header.hide { transform: translateY(-100%); }

  .nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-brand {
    position: relative;
    font-weight: 800;
    font-size: clamp(26px, 4.8vw, 44px);
    letter-spacing: -0.02em;
    white-space: nowrap;
    padding-bottom: 6px;
  }
  .nav-brand::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 0;
    height: 6px;
    border-radius: 3px;
    background: #e04848;
  }
  .nav-brand span { color: var(--accent); }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 15px;
    font-weight: 500;
  }

  .nav-links a:not(.nav-cta) {
    position: relative;
    color: var(--ink);
    padding: 4px 0;
  }
  .nav-links a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
  }
  .nav-links a:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-cta {
    white-space: nowrap;
    background: var(--ink);
    color: var(--bg);
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s var(--ease);
  }
  .nav-cta:hover { background: var(--accent); transform: scale(1.04); }
  .nav-cta:active { transform: scale(0.97); }

  /* ---------- Hero ---------- */
  .hero {
    height: 100dvh;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 0;
    padding-bottom: clamp(40px, 6vh, 80px);
  }

  .hero-art {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 88px;
    min-height: 0;
    opacity: 0;
    animation: heroArtIn 1.6s var(--ease) 0.45s forwards;
  }
  @keyframes heroArtIn { to { opacity: 1; } }

  .hero-art svg {
    width: min(100%, 1080px);
    height: 100%;
    max-height: 324px;
    display: block;
  }

  .hero-art .routes path {
    stroke: var(--hairline);
    stroke-width: 1.5;
  }
  .hero-art .flow {
    stroke: var(--accent);
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-dasharray: 0.14 0.86;
    stroke-dashoffset: 0.14;
    animation: flowTravel 7s linear infinite;
  }
  .hero-art .tail {
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 0.32 0.68;
    stroke-dashoffset: 0.14;
    opacity: 0.16;
    animation: flowTravel 7s linear infinite;
    animation-delay: 0.55s;
  }
  .hero-art .flow.f2 { animation-delay: 1.2s; }
  .hero-art .flow.f3 { animation-delay: 2.4s; }
  .hero-art .flow.f4 { animation-delay: 0.6s; }
  .hero-art .flow.f5 { animation-delay: 1.8s; }
  .hero-art .flow.f6 { animation-delay: 3s; }
  .hero-art .tail.f2 { animation-delay: 1.75s; }
  .hero-art .tail.f3 { animation-delay: 2.95s; }
  .hero-art .tail.f4 { animation-delay: 1.15s; }
  .hero-art .tail.f5 { animation-delay: 2.35s; }
  .hero-art .tail.f6 { animation-delay: 3.55s; }
  @keyframes flowTravel { from { stroke-dashoffset: 0.14; } to { stroke-dashoffset: -0.86; } }

  .hero-art .court path {
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .hero-art .node {
    stroke: #c9c9c1;
    stroke-width: 1.5;
    fill: var(--bg);
  }
  .hero-art .head, .hero-art .shoulders {
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    fill: none;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-art { opacity: 1; animation: none; }
    .hero-art .flow, .hero-art .tail { display: none; }
  }

  .hero-eyebrow {
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: clamp(20px, 3vh, 36px);
  }

  .hero h1 {
    font-size: clamp(34px, min(10.2vw, 15.5vh), 200px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }
  .hero h1 .quiet { color: var(--muted); font-weight: 500; }

  .line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .line-mask > span {
    display: block;
    transform: translateY(110%);
    animation: lineUp 1.1s var(--ease) forwards;
  }
  .line-mask:nth-child(2) > span { animation-delay: 0.12s; }

  @keyframes lineUp { to { transform: translateY(0); } }

  .hero-foot {
    margin-top: clamp(36px, 6vh, 72px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
  }

  .hero-sub {
    font-size: clamp(17px, 1.4vw, 21px);
    color: var(--muted);
    max-width: 46ch;
  }

  .hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
  }

  .btn-primary {
    display: inline-block;
    background: var(--ink);
    color: var(--bg);
    font-size: clamp(15px, 1.1vw, 17px);
    font-weight: 600;
    padding: 18px 36px;
    border-radius: 999px;
    transition: background 0.25s ease, transform 0.25s var(--ease);
    white-space: nowrap;
  }
  .btn-primary:hover { background: var(--accent); transform: scale(1.04); }
  .btn-primary:active { transform: scale(0.97); }

  .hero-phone {
    font-size: clamp(15px, 1.1vw, 17px);
    font-weight: 500;
    color: var(--muted);
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 2px;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
  }
  .hero-phone:hover { color: var(--accent); border-color: var(--accent); }

  /* ---------- Section shells ---------- */
  section { padding: clamp(96px, 12vh, 180px) 0; }

  .section-title {
    font-size: clamp(40px, 5.5vw, 96px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin-bottom: 24px;
  }

  .section-intro {
    font-size: clamp(17px, 1.3vw, 20px);
    color: var(--muted);
    max-width: 58ch;
    margin-bottom: clamp(48px, 7vh, 88px);
  }

  /* ---------- Practice areas ---------- */
  .practice-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: clamp(24px, 4vw, 80px);
    padding: clamp(36px, 5vh, 56px) 0;
    border-top: 1px solid var(--hairline);
    align-items: center;
  }
  .practice-row:last-of-type { border-bottom: 1px solid var(--hairline); }

  .practice-row h3 {
    font-size: clamp(28px, 3.4vw, 56px);
    font-weight: 700;
    letter-spacing: -0.025em;
    transition: color 0.3s ease, transform 0.5s var(--ease);
  }
  .practice-row:hover h3 { color: var(--accent); transform: translateX(12px); }

  .practice-row p {
    font-size: clamp(16px, 1.15vw, 18px);
    color: var(--muted);
    max-width: 52ch;
  }

  .practice-arrow {
    width: 52px; height: 52px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--muted);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.5s var(--ease);
  }
  .practice-row:hover .practice-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    transform: rotate(-45deg);
  }

  /* ---------- About ---------- */
  .about { background: var(--bg-raised); }

  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 6vw, 120px);
    align-items: start;
  }

  .about-photo { position: sticky; top: 120px; }

  .about-photo .img-frame {
    overflow: hidden;
    border-radius: 4px;
  }
  .about-photo img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 1.2s var(--ease);
  }
  .about-photo:hover img { transform: scale(1.07); }

  .about-photo figcaption {
    margin-top: 14px;
    font-size: 14.5px;
    color: var(--muted);
  }

  .about-body .section-title { max-width: 14ch; }

  .about-body p {
    font-size: clamp(17px, 1.3vw, 20px);
    max-width: 58ch;
    margin-bottom: 26px;
  }
  .about-body p.soft { color: var(--muted); }

  .about-creds {
    margin-top: clamp(40px, 6vh, 64px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 48px;
  }

  .cred h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 8px;
  }
  .cred p { font-size: clamp(15px, 1.1vw, 17px); margin-bottom: 0; }

  /* ---------- Contact ---------- */
  .contact-head {
    font-size: clamp(38px, 8vw, 150px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
    max-width: 12ch;
    margin-bottom: clamp(48px, 8vh, 100px);
  }
  .contact-head em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    line-height: 1.1;
    padding-bottom: 0.06em;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 6vw, 120px);
  }

  .contact-details > p {
    font-size: clamp(16px, 1.2vw, 19px);
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 42ch;
  }

  .contact-line {
    display: block;
    font-size: clamp(20px, 2vw, 32px);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
    width: fit-content;
    position: relative;
    padding-bottom: 4px;
  }
  .contact-line::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--hairline);
  }
  .contact-line::before {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
    z-index: 1;
  }
  .contact-line:hover { color: var(--accent); }
  .contact-line:hover::before { transform: scaleX(1); transform-origin: left; }

  .contact-address {
    margin-top: 24px;
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.6;
  }

  .contact-note {
    margin-top: 44px;
    font-size: 14.5px;
    color: var(--muted);
    max-width: 44ch;
  }

  form { display: grid; gap: 28px; }

  .field { display: grid; gap: 9px; }

  .field label { font-size: 15px; font-weight: 600; }

  .field input,
  .field textarea {
    font-family: inherit;
    font-size: 16.5px;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid #cfcfc8;
    border-radius: 0;
    padding: 12px 2px 14px;
    transition: border-color 0.3s ease;
  }
  .field input::placeholder,
  .field textarea::placeholder { color: #8a8e94; }
  .field input:focus,
  .field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
  }
  .field textarea { min-height: 120px; resize: vertical; }

  .field-hint { font-size: 13.5px; color: var(--muted); }

  .form-confirm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px;
    animation: confirmIn 0.9s var(--ease) both;
  }
  @keyframes confirmIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

  .form-confirm h3 {
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 18px;
  }
  .form-confirm h3 em { font-style: italic; font-weight: 400; color: var(--accent); }

  .form-confirm p {
    font-size: clamp(16.5px, 1.25vw, 19px);
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 24px;
  }

  .form-confirm .confirm-sign {
    font-size: clamp(18px, 1.4vw, 22px);
    font-weight: 600;
    color: var(--ink);
  }
  .form-confirm .confirm-sign small {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    margin-top: 2px;
  }

  .hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

  .form-status { font-size: 15px; min-height: 22px; }
  .form-status.ok { color: var(--accent); font-weight: 600; }
  .form-status.err { color: #a03232; }

  form .btn-primary {
    border: none;
    cursor: pointer;
    justify-self: start;
    font-family: inherit;
    margin-top: 8px;
  }

  /* ---------- Legal pages ---------- */
  .legal {
    max-width: 760px;
    padding: 160px 0 120px;
  }
  .legal h1 {
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin-bottom: 12px;
  }
  .legal-date {
    font-size: 14.5px;
    color: var(--muted);
    margin-bottom: 48px;
  }
  .legal h2 {
    font-size: clamp(20px, 1.8vw, 26px);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 44px 0 12px;
  }
  .legal p {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 16px;
  }
  .legal a { color: var(--accent); font-weight: 600; }
  .legal a:hover { text-decoration: underline; }

  @media (max-width: 900px) {
    .legal { padding: 128px 0 88px; }
  }

  .foot-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
  .foot-legal a:hover { color: var(--accent); }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid var(--hairline);
    padding: clamp(40px, 6vh, 64px) 0;
  }

  .foot-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
  }

  .foot-brand { font-weight: 700; font-size: 16.5px; line-height: 1.6; }
  .foot-brand small {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 14px;
  }

  .foot-legal {
    font-size: 13.5px;
    color: var(--muted);
    max-width: 64ch;
    line-height: 1.6;
  }

  /* ---------- Reveal animation ---------- */
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }

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

  /* ---------- Mobile ---------- */
  @media (max-width: 900px) {
    .nav { height: 64px; }
    .nav-links a:not(.nav-cta) { display: none; }

    /* Hero: bottom-anchored like desktop, one deliberate void up top */
    .hero { height: auto; min-height: 100dvh; justify-content: flex-end; padding-top: 0; padding-bottom: 64px; }
    .hero-art { margin-top: 80px; }
    .hero-art svg { width: 100%; }
    .hero-eyebrow { margin-bottom: 20px; }
    .hero h1 { line-height: 1.0; }
    .hero-foot { flex-direction: column; align-items: flex-start; margin-top: 44px; gap: 32px; }

    /* One consistent vertical rhythm: 96 / 48 / 32 / 16 */
    section { padding: 96px 0; }
    .section-title { margin-bottom: 16px; }
    .section-intro { margin-bottom: 48px; }

    .practice-row { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
    .practice-arrow { display: none; }
    .practice-row:hover h3 { transform: none; }

    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-grid { gap: 56px; }
    .about-photo { position: static; max-width: none; }
    .about-body p { margin-bottom: 20px; }
    .about-creds { grid-template-columns: 1fr; margin-top: 44px; gap: 32px; }

    .contact-head { margin-bottom: 56px; }
    .contact-grid { gap: 64px; }
    .contact-details > p { margin-bottom: 32px; }
    .contact-line { margin-bottom: 20px; }
    .contact-note { margin-top: 32px; }

    footer { padding: 56px 0; }
  }

  /* ---------- Small phones ---------- */
  @media (max-width: 520px) {
    .nav { height: 60px; }
    .nav-cta { padding: 10px 18px; font-size: 14px; }
    .hero { padding-bottom: 48px; }
    .hero-actions { flex-wrap: wrap; gap: 16px; }
    .btn-primary { padding: 15px 28px; }
    section { padding: 80px 0; }
    .contact-head { margin-bottom: 48px; }
    .contact-grid { gap: 56px; }
    .foot-grid { flex-direction: column; gap: 16px; }
  }
