/* =========================================================
   ACORDA: how every page looks.
   A copy of the old WordPress site's look (cream page, black
   type, green highlight), rebuilt cleanly by hand.
   ========================================================= */

/* FONT: Hanken Grotesk, a free stand-in for the old site's paid
   font (Helvetica Now). Stored with the site, so no outside requests */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

/* COLOURS AND SIZES: the brand palette. Change a colour here and it changes everywhere */
:root {
  --cream: #FFF9F2;      /* page background */
  --ink: #111111;        /* text */
  --green: #18A548;      /* page titles: the old site's #1DB954, a touch deeper so it is easy to read */
  --green-text: #13853C; /* the same green, a touch darker, for small text so it stays easy to read */
  --grey: #5E5E5E;       /* categories and small print */
  --line: #DDD8D0;       /* thin lines and form borders */
  --wrap: 1180px;        /* widest the page content gets */
  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* BASICS */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 300 17px/1.65 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green-text); outline-offset: 3px; }

/* HEADER: logo on the left, menu in the middle, LinkedIn on the right */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 249, 242, .94); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo img { width: 112px; }
.nav { display: flex; gap: clamp(28px, 4.5vw, 60px); }
.nav a { font-size: 14px; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--green-text); }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 36px; height: 36px; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: inherit; }
.menu-btn span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; }

/* PHONE MENU: a full dark page with the light logo, like the old site's pop-up */
.menu { border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: var(--ink); color: var(--cream); }
.menu::backdrop { background: var(--ink); }
.menu[open] { display: flex; flex-direction: column; animation: fade .3s ease; }
.menu .menu-head { display: flex; justify-content: space-between; align-items: center; height: 84px; padding: 0 24px; }
.menu .menu-head img { width: 112px; }
.menu .x { background: none; border: 0; color: inherit; font: 300 40px/1 var(--font); cursor: pointer; padding: 6px 10px; }
.menu nav { display: flex; flex-direction: column; gap: 10px; padding: 32px 24px; }
.menu nav a { font-size: 34px; text-decoration: none; }
.menu nav a[aria-current] { color: var(--green); }
@keyframes fade { from { opacity: 0; } }

/* BUTTONS: the old site's thin outlined pill with an arrow */
.btn { display: inline-flex; align-items: center; gap: 12px; border: 1px solid currentColor; border-radius: 999px; padding: 9px 22px; font-size: 14px; font-weight: 400; text-decoration: none; transition: background .3s, color .3s; }
.btn svg { width: 14px; height: 14px; fill: currentColor; transition: transform .3s; }
.btn:hover svg { transform: translateX(4px); }
.btn.dark:hover { background: var(--ink); color: var(--cream); }
.btn.light:hover { background: var(--cream); color: var(--ink); }

/* HOME HERO: their best project full width, with the words at the bottom left.
   The photo settles from a slight zoom; the words rise in within the first second */
.hero { position: relative; height: calc(100svh - 84px); min-height: 480px; max-height: 980px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: -2; transform: scale(1.06); animation: settle 2.6s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.42) 40%, rgba(10,10,10,0) 65%), linear-gradient(90deg, rgba(10,10,10,.35), rgba(10,10,10,0) 60%); }
.hero-text { padding-bottom: clamp(40px, 8vh, 84px); opacity: 0; transform: translateY(20px); animation: up .8s .25s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero h1 { font-size: clamp(40px, 7vw, 96px); font-weight: 300; letter-spacing: -0.035em; max-width: 9em; }
.hero p { margin: 14px 0 28px; font-size: clamp(17px, 1.7vw, 21px); font-weight: 400; }
.hero-credit { position: absolute; right: 24px; bottom: 22px; font-size: 13px; color: rgba(255,255,255,.85); text-decoration: none; padding: 6px 0; }
.hero-credit:hover { color: #fff; text-decoration: underline; }
/* SHORT SCREENS (a phone held sideways): smaller words so they all fit */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero h1 { font-size: 40px; }
  .hero p { margin: 8px 0 16px; }
  .hero-text { padding-bottom: 28px; }
}
@keyframes settle { to { transform: scale(1); } }
@keyframes up { to { opacity: 1; transform: none; } }

/* PROJECT GRID: three across on big screens, used on the home and category pages */
.projects { padding: 110px 0 40px; }
.projects h2, .page-title { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 44px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 26px; }
.card a { text-decoration: none; display: block; }
.card .pic { overflow: hidden; aspect-ratio: 23 / 19; background: #EDE6DC; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.card a:hover .pic img { transform: scale(1.045); }
.card h3 { font-size: 21px; text-transform: uppercase; letter-spacing: -0.01em; margin-top: 16px; }
.card .tags { font-size: 14px; color: var(--grey); margin-top: 4px; }
.card .tags a { display: inline-block; padding: 4px 0; }
.card .tags a:hover { color: var(--ink); text-decoration: underline; }

/* PAGE INTRO: the big green title and the text beside it (About, Team, Wellness) */
.intro { padding: 110px 0 60px; display: grid; grid-template-columns: 5fr 7fr; gap: 40px 70px; align-items: start; }
.intro h1 { font-size: clamp(48px, 6.4vw, 80px); color: var(--green); font-weight: 300; letter-spacing: -0.035em; }
.intro .sub { font-size: clamp(22px, 2.3vw, 28px); font-weight: 300; margin-top: 18px; line-height: 1.2; }
.intro .text { padding-top: 10px; font-size: 16px; }

/* TEXT AND PHOTO SECTIONS (About page) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 0; }
.split h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 300; margin-bottom: 18px; }
.split .text { font-size: 16px; }
.split .btn { margin-top: 18px; }
.split img { width: 100%; }
.split.photo-left .photo { order: -1; }
.split .photo.tall img { aspect-ratio: 4 / 5; object-fit: cover; }

/* TEAM MEMBER */
.person { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: start; padding: 60px 0 40px; max-width: 900px; margin-inline: auto; }
.person img { filter: grayscale(1); width: 100%; }
.person h2 { font-size: 26px; font-weight: 300; margin: 8px 0 18px; }
.person .text { font-size: 16px; }

/* ONE PROJECT: title, photos one under another, then the facts */
.project-head { padding: 80px 0 36px; }
.project-head h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 300; letter-spacing: -0.03em; }
.back { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; text-decoration: none; }
.back svg { width: 14px; height: 14px; fill: currentColor; transition: transform .3s; }
.back:hover svg { transform: translateX(-4px); }
.photos { width: min(1400px, 100% - 32px); margin-inline: auto; display: grid; gap: 18px; }
.photos img { width: 100%; background: #EDE6DC; }
.facts { max-width: 760px; margin: 70px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.facts dt { font-size: 18px; font-weight: 400; padding: 8px 0; }
.facts dd { margin: 0; padding: 10px 0; font-size: 15px; }
.facts .wide { grid-column: 2; }

/* CONTACT PAGE: words on the left, the form on the right */
.contact { display: grid; grid-template-columns: 290px 1fr; gap: 60px; padding: 90px 0 40px; max-width: 980px; margin-inline: auto; }
.contact h1 { font-size: 38px; font-weight: 300; margin-bottom: 18px; }
.contact .text { font-size: 16px; }
.contact .text a { text-decoration: none; display: block; padding: 3px 0; }
.contact .text a:hover { text-decoration: underline; }
.contact address { font-style: normal; margin-top: 18px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form label { display: block; font-size: 15px; font-weight: 400; margin-bottom: 18px; }
form input, form textarea { display: block; width: 100%; margin-top: 6px; font: 300 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 11px 12px; transition: border-color .2s; }
form input:focus, form textarea:focus { outline: none; border-color: var(--ink); }
form textarea { min-height: 150px; resize: vertical; }
form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form button { width: 100%; font: 400 16px var(--font); background: none; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 12px; cursor: pointer; transition: background .3s, color .3s; }
form button:hover { background: var(--ink); color: var(--cream); }
form button[disabled] { opacity: .6; cursor: wait; }
.form-note { font-size: 14px; color: var(--grey); margin-top: 14px; }
.form-msg { margin-top: 16px; font-size: 16px; }
.form-msg.bad { color: #A12A1A; }
.thanks-box { padding: 30px 0; }
.thanks-box h2 { font-size: 30px; font-weight: 300; margin-bottom: 12px; }

/* PLAIN TEXT PAGES (privacy, thank you, not found) */
.prose { max-width: 760px; margin-inline: auto; padding: 90px 0 40px; }
.prose h1 { font-size: clamp(44px, 6vw, 72px); color: var(--green); font-weight: 300; letter-spacing: -0.035em; margin-bottom: 30px; }
.prose h2 { font-size: 24px; font-weight: 400; margin: 36px 0 10px; }
.prose ul { padding-left: 1.2em; }

/* FOOTER: the giant TALK TO US link, then three columns */
.foot { padding-top: 120px; }
.talk { display: block; text-align: center; text-decoration: none; font-size: clamp(54px, 11vw, 132px); font-weight: 400; letter-spacing: -0.045em; line-height: 1; padding-bottom: 40px; transition: color .4s; }
.talk:hover { color: var(--green-text); }
.foot hr { border: 0; border-top: 1px solid #9A968F; width: min(1300px, 100% - 48px); margin: 0 auto; }
.foot-cols { display: grid; grid-template-columns: 110px 1.2fr 1.3fr; gap: 40px 56px; padding: 56px 0 30px; max-width: 840px; margin-inline: auto; font-size: 14px; line-height: 1.5; }
.foot-cols h2 { font-size: 15px; font-weight: 500; letter-spacing: 0; margin: 0 0 6px; }
.foot-cols h2 + * { margin-top: 0; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols a { text-decoration: none; display: inline-block; padding: 3px 0; }
.foot-cols a:hover { text-decoration: underline; }
.foot-cols address { font-style: normal; }
.foot-cols .h2-gap { margin-top: 14px; }
.foot-cols .pills { display: flex; gap: 10px; margin-top: 16px; }
.foot-cols .pills a { border: 1px solid currentColor; border-radius: 999px; padding: 6px 16px; }
.foot-cols .pills a:hover { background: var(--ink); color: var(--cream); text-decoration: none; }
.legal { text-align: center; font-size: 13px; padding: 20px 0 40px; }
.legal a { text-decoration: none; margin-left: 16px; display: inline-block; padding: 6px 0; }
.legal a:hover { text-decoration: underline; }

/* ENTRANCES: things rise gently into place the first time they scroll into view.
   Only when the script runs, so nothing is ever hidden without it */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .rise.in { opacity: 1; transform: none; }
.js .grid .card.rise:nth-child(3n+2) { transition-delay: .08s; }
.js .grid .card.rise:nth-child(3n+3) { transition-delay: .16s; }

/* TABLET LAYOUT */
@media (max-width: 960px) {
  .nav, .top .social { display: none; }
  .menu-btn { display: block; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .intro, .split, .contact { grid-template-columns: 1fr; gap: 30px; }
  .split.photo-left .photo { order: 0; }
  .split { padding: 40px 0; }
  .intro { padding-top: 70px; }
  .person { grid-template-columns: 220px 1fr; gap: 32px; }
}

/* PHONE LAYOUT: one column */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .top .wrap { height: 70px; }
  .menu .menu-head { height: 70px; }
  .logo img, .menu .menu-head img { width: 98px; }
  .hero { height: calc(100svh - 70px); min-height: 520px; }
  .hero-photo { object-position: 66% 50%; }
  .hero-credit { right: 16px; bottom: 12px; }
  .projects { padding-top: 70px; }
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .person { grid-template-columns: 1fr; }
  .person img { max-width: 300px; }
  .facts { grid-template-columns: 110px 1fr; gap: 0 18px; margin-top: 44px; }
  .facts .wide { grid-column: 1 / -1; }
  form .row { grid-template-columns: 1fr; gap: 0; }
  .foot { padding-top: 80px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols .about { grid-column: 1 / -1; }
  .photos { gap: 10px; width: 100%; }
}

/* CALM MODE: people who ask their device for less motion get none */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rise, .hero-text { opacity: 1; transform: none; }
  .hero-photo { transform: none; }
}
