/* Fonts — editorial serif and sans use system fonts; handwriting is local. */
@font-face {
  font-family: "Brittany Signature";
  src: url("../assets/fonts/brittany-signature.woff2") format("woff2"), url("../assets/fonts/brittany-signature.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* Variables */
:root {
  --teal: #356B75;
  --deep-teal: #214B53;
  --mist-blue: #D7E4E7;
  --soft-blue: #BDD0D5;
  --warm-cream: #F2E9DE;
  --coral: #C77A66;
  --soft-white: #FFFDF9;
  --editorial-taupe: #C8B8A8;
  --ink: #103D49;
  --muted: #697677;
  --paper: #FAF7F2;
  --font-serif: "Times New Roman", Times, serif;
  --font-sans: "Instrument Sans", Arial, sans-serif;
  --font-script: "Brittany Signature", cursive;
  --container: 1320px;
  --section-space: clamp(24px, 3vw, 48px);
  --radius: 999px;
  --ease: 220ms ease;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-sans); font-size: clamp(14px, 1.25vw, 18px); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; }
strong { font-weight: 600; }
::selection { background: var(--soft-blue); color: var(--deep-teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; }
section { scroll-margin-top: 12px; }
.container { width: min(89.5%, var(--container)); margin-inline: auto; }
.eyebrow { font-family: var(--font-sans); font-size: clamp(10px, .9vw, 13px); font-weight: 500; letter-spacing: .23em; text-transform: uppercase; color: var(--teal); line-height: 1.5; }
.eyebrow > span { font-size: 1.25em; letter-spacing: 0; }
.editorial-note { font-size: clamp(8px, .68vw, 10px); line-height: 1.85; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); }
.handwriting { font-family: var(--font-script); font-weight: 400; color: var(--coral); line-height: 1.3; text-align: center; pointer-events: none; }
.little-star { display: block; font-family: var(--font-serif); font-size: .85em; line-height: 1.5; font-weight: 400; }
.small-rule { display: block; height: 1px; width: 100%; background: currentColor; margin-top: 14px; opacity: .6; }
.skip-link { position: fixed; top: 10px; left: 16px; padding: 12px 20px; z-index: 100; color: var(--soft-white); background: var(--deep-teal); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Links & buttons */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 15px; min-height: 44px; padding: 10px 28px; border: 1px solid var(--teal); border-radius: var(--radius); font-size: clamp(12px, 1vw, 14px); font-weight: 600; line-height: 1.2; white-space: nowrap; transition: background-color var(--ease), color var(--ease), border-color var(--ease); }
.button-fill { color: var(--soft-white); background: var(--teal); }
.button-outline { color: var(--deep-teal); background: transparent; }
.button-light { color: var(--deep-teal); background: var(--paper); border-color: var(--paper); }
.arrow { display: inline-block; font-family: Arial, sans-serif; font-size: 23px; font-weight: 400; line-height: .7; transition: transform var(--ease); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 32px; font-size: clamp(11px, .95vw, 14px); border-bottom: 1px solid var(--teal); }
@media (hover: hover) {
  .button-fill:hover { background: var(--deep-teal); border-color: var(--deep-teal); }
  .button-outline:hover { background: var(--mist-blue); }
  .button-light:hover { background: var(--mist-blue); border-color: var(--mist-blue); }
  a:hover .arrow, button:hover .arrow { transform: translateX(4px); }
  .text-link:hover { color: var(--teal); }
}

/* Header */
.site-header { position: relative; z-index: 10; background: var(--soft-white); }
.header-inner { min-height: clamp(64px, 5.4vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(92%, 1360px); }
.wordmark { display: flex; align-items: center; gap: 18px; color: var(--teal); font-family: var(--font-serif); font-size: clamp(36px, 3.3vw, 48px); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.brand-star { display: inline-block; font-size: .8em; font-weight: 400; transition: transform 250ms ease, color 250ms ease; }
@media (hover: hover) {
  .wordmark:hover .brand-star { color: var(--coral); transform: rotate(12deg) scale(1.12); }
}
.primary-nav { display: flex; align-items: center; gap: clamp(25px, 4.2vw, 60px); margin-left: 4%; }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(12px, 1vw, 14px); color: var(--deep-teal); }
.nav-link::after { content: ""; position: absolute; bottom: 6px; left: -3px; right: -3px; height: 1px; background: var(--teal); transform: scaleX(0); transition: transform var(--ease); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.header-cta { min-width: clamp(145px, 12.3vw, 178px); }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: clamp(510px, 44.15vw, 650px); background: var(--soft-white); }
.hero-inner { position: relative; min-height: inherit; }
.hero-copy { position: relative; z-index: 3; width: 43%; padding-top: clamp(40px, 4.05vw, 61px); padding-bottom: 40px; }
.hero h1 { margin: 15px 0 19px; font-size: clamp(54px, 5.7vw, 83px); line-height: .9; letter-spacing: -.05em; }
.hero h1 em { font-weight: 400; }
.hero-description { font-size: clamp(14px, 1.26vw, 18px); max-width: 96%; }
.hero-actions { display: flex; gap: 16px; margin-top: 20px; }
.hero-actions .button:first-child { min-width: 146px; }
.hero-actions .button:last-child { min-width: 125px; }
.hero-manifesto { margin-top: clamp(28px, 2.7vw, 40px); padding: 4px 0 4px 30px; border-left: 1px solid #8A9FA3; }
.hero-portrait { position: absolute; inset: 0 0 0 36.4%; background: #d8d3ca; overflow: hidden; border-radius: 18% 0 0 4% / 46% 0 0 46%; }
.hero-image { position: absolute; top: -5%; left: 0; width: 76%; height: auto; max-width: none; object-fit: cover; mask-image: linear-gradient(to right, #000 90%, transparent 100%); }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 31%; fill: var(--mist-blue); }
.portrait-wave { position: absolute; right: -1px; bottom: -1px; width: 24%; height: 52%; fill: var(--mist-blue); }
.hero-good { position: absolute; top: 12%; right: -1.5%; font-size: clamp(23px, 2.1vw, 31px); transform: rotate(-19deg); }
.hero-good > span { padding-left: 14px; }
.hero-good .little-star { padding-left: 40px; }
.hero-humans { position: absolute; top: 72%; left: 33%; z-index: 4; font-size: clamp(18px, 1.6vw, 24px); transform: rotate(-19deg); }
.hero-humans .little-star { margin-left: 42px; }
.hero-tomorrow { position: absolute; bottom: 4%; right: -2.5%; width: 93px; font-size: clamp(8px, .72vw, 10px); }

/* About */
.about { position: relative; overflow: hidden; background: var(--paper); }
.about-inner { position: relative; display: grid; grid-template-columns: 43% 1fr; gap: 2.6%; align-items: center; min-height: clamp(345px, 28.35vw, 417px); padding-block: 20px; }
.about-visual { position: relative; padding-left: 5%; }
.about-image { width: 100%; height: auto; aspect-ratio: 1.46; object-fit: cover; object-position: 50% 47%; border-radius: 29% 29% 20% 0 / 42% 42% 23% 0; }
.about-dreamers { position: absolute; left: -8%; top: 38%; font-size: clamp(19px, 1.7vw, 25px); transform: rotate(-20deg); }
.about-dreamers .little-star { margin-top: 7px; }
.about-copy { position: relative; z-index: 2; padding-right: 22%; }
.about h2 { margin: 13px 0 14px; font-size: clamp(34px, 3.65vw, 52px); line-height: .97; letter-spacing: -.035em; white-space: nowrap; }
.about-copy > p:not(.eyebrow) { margin-bottom: 9px; font-size: clamp(14px, 1.26vw, 18px); }
.about-copy .button { margin-top: 1px; min-width: 190px; }
.about-kinder { position: absolute; top: 14%; right: -2.3%; font-size: clamp(19px, 1.75vw, 26px); transform: rotate(-20deg); }
.about-kinder .little-star { margin-left: 44px; }
.about-botanical { position: absolute; width: 19%; right: -4%; bottom: -9%; mix-blend-mode: multiply; filter: brightness(1.045); pointer-events: none; }

/* Featured work */
.work { position: relative; isolation: isolate; overflow: hidden; background: var(--mist-blue) url("../assets/images/featured-work-background.png") center / cover no-repeat; }
.work-inner { position: relative; display: grid; grid-template-columns: 29.5% 1fr; grid-template-rows: 1fr; gap: 1.6%; min-height: clamp(325px, 27.1vw, 400px); padding-top: 22px; padding-bottom: 30px; }
.work-heading { position: relative; z-index: 2; }
.work h2 { margin-top: 9px; font-size: clamp(34px, 3.5vw, 51px); line-height: .96; letter-spacing: -.04em; }
.work-all { position: absolute; top: 20px; right: -1%; z-index: 2; }
.project-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-self: end; margin-top: 40px; }
.project { min-width: 0; background: var(--paper); }
.project-image { overflow: hidden; }
.project-image img { width: 100%; aspect-ratio: 1.32; object-fit: cover; transition: transform 350ms ease; }
.project-caption { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 12px 14px; border-top: 1px solid #e7e2da; }
.project-caption h3 { font-family: var(--font-sans); font-size: clamp(12px, 1.1vw, 16px); font-weight: 600; }
.project-caption p { margin-top: 5px; font-size: clamp(8px, .71vw, 10px); color: var(--teal); text-transform: uppercase; letter-spacing: .2em; }
.project-caption .arrow { color: var(--teal); }
.work-thoughtful { position: absolute; left: 10%; bottom: 3%; font-size: clamp(22px, 1.85vw, 27px); transform: rotate(-20deg); z-index: 1; }
.work-thoughtful > span { padding-left: 20px; }
.work-thoughtful .little-star { padding-left: 78px; }
.work-further { position: absolute; right: .2%; bottom: 2%; font-size: clamp(16px, 1.55vw, 23px); transform: rotate(-14deg); }
@media (hover: hover) { .project:hover .project-image img { transform: scale(1.025); } }

/* Services */
.services { position: relative; background: var(--paper); padding-block: 24px 54px; }
.services-inner { display: grid; grid-template-columns: 18% repeat(3, minmax(0, 1fr)); gap: 20px; width: min(90.5%, 1340px); }
.services-heading { padding: 3px 0 0 4px; }
.services h2 { font-size: clamp(30px, 2.95vw, 43px); line-height: 1.02; letter-spacing: -.035em; margin-top: 11px; }
.service { padding: 22px 10px 20px; text-align: center; background: #F3EEE7; }
.service-icon { width: 38px; height: 38px; margin: 0 auto 9px; }
.service h3 { font-size: clamp(19px, 1.75vw, 25px); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 10px; }
.service p { font-size: clamp(12px, 1.1vw, 16px); color: #626D68; }

/* Footer */
.site-footer {
  --footer-wave-height: 44px;
  position: relative;
  isolation: isolate;
  color: var(--soft-white);
  background: var(--teal);
  padding-top: 21px;
  padding-bottom: 18px;
}
.site-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(-1 * var(--footer-wave-height)) 0 0;
  background: var(--teal) url("../assets/images/footer-botanical-background.png") center / cover no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0C170 37 224 49 401 21S734 31 958 42 1280 43 1440 0V70H0Z'/%3E%3C/svg%3E"), linear-gradient(#000, #000);
  -webkit-mask-position: top, bottom;
  -webkit-mask-size: 100% calc(var(--footer-wave-height) + 1px), 100% calc(100% - var(--footer-wave-height));
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0 0C170 37 224 49 401 21S734 31 958 42 1280 43 1440 0V70H0Z'/%3E%3C/svg%3E"), linear-gradient(#000, #000);
  mask-position: top, bottom;
  mask-size: 100% calc(var(--footer-wave-height) + 1px), 100% calc(100% - var(--footer-wave-height));
  mask-repeat: no-repeat;
}
.footer-inner { position: relative; z-index: 1; width: min(90.5%, 1340px); }
.footer-cta { display: flex; align-items: center; justify-content: center; gap: 30px; padding-left: 10%; padding-bottom: 14px; }
.footer-cta h2 { font-size: clamp(27px, 2.5vw, 36px); line-height: 1.04; letter-spacing: -.025em; }
.footer-cta h2 > span { padding-left: 16px; }
.footer-cta h2 b { font-weight: 400; font-size: .85em; padding-left: 7px; }
.footer-cta > p { padding: 7px 0 7px 24px; border-left: 1px solid #92afb5; font-size: clamp(12px, 1vw, 15px); line-height: 1.4; }
.footer-cta > .button { margin-left: 25px; }
.footer-bottom { display: flex; gap: 26px; align-items: center; }
.footer-wordmark { font-size: 32px; font-family: var(--font-serif); font-weight: 700; letter-spacing: -.03em; }
.footer-tagline { font-size: clamp(11px, .95vw, 14px); }
.footer-separator { display: inline-block; margin-right: 14px; font-family: var(--font-serif); font-size: .8em; line-height: 1; }
.social-links { display: flex; gap: 2px; margin-left: auto; }
.social-links button, .social-links a { display: flex; align-items: center; justify-content: center; background: none; color: inherit; width: 44px; height: 44px; padding: 11px; transition: opacity var(--ease); }
.social-links button:hover, .social-links a:hover { opacity: .7; }
.social-links svg { width: 22px; height: 22px; }
.footer-note { border-left: 1px solid #92afb5; padding-left: 28px; color: #e1e8e6; font-size: clamp(8px, .68vw, 10px); }
.site-footer :focus-visible { outline-color: var(--soft-white); }

/* Accessible native dialogs */
dialog { border: 1px solid var(--editorial-taupe); padding: 0; color: var(--ink); background: var(--paper); max-height: 90dvh; }
dialog::backdrop { background: rgb(20 47 52 / .7); }
body:has(dialog[open]) { overflow: hidden; }
.editorial-dialog { width: min(560px, calc(100% - 32px)); padding: clamp(30px, 5vw, 58px); }
.editorial-dialog h2 { font-size: clamp(34px, 5vw, 48px); line-height: 1; margin: 18px 0; }
.editorial-dialog > p:not(.eyebrow) { font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.editorial-dialog .button { margin-top: 5px; }
.dialog-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; color: var(--deep-teal); background: var(--paper); border-radius: 50%; font-size: 30px; line-height: 1; z-index: 2; }
.project-dialog { width: min(1000px, calc(100% - 32px)); }
.project-dialog > img { width: 100%; max-height: 75dvh; object-fit: contain; }
.preview-caption { padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-caption h2 { font-size: 28px; }

/* Sans body copy */
.hero-description,
.about-copy > p:not(.eyebrow),
.service p,
.footer-cta > p,
.footer-tagline,
.editorial-dialog > p:not(.eyebrow) {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.01em;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
