/* ============================================================
   Initiated Talent · site styles
   ------------------------------------------------------------
   A dark hero with a blurred photograph behind the words, a
   light body, a dark close set in as a card, and a light footer.
   The nav floats over the hero with no bar of its own, turns to
   frosted glass once the page scrolls, and to light glass once
   the hero has passed. Statements are set in two tones and
   photographs given room. Headlines are Hanken Grotesk Light;
   text is Inter. One accent, forest, used once per section. No
   bands in between, no scroll hijacking, one card style. Motion
   is a rise on first sight and a slow drift in the hero picture,
   nothing else. Nothing on the page is black: the dark is a deep
   forest green and the ink is a green-black.
   ============================================================ */

:root {
  /* the brand palette */
  --forest: #123C2D;
  --moss: #3D6B54;
  --sage: #A9BEA6;
  --stone: #E7E2D7;
  --fog: #F0F5F2;
  --ink: #17251F;

  /* the light body */
  --bg: #ECF2EE;
  --bg-2: #F8FBF8;
  --fg: #17251F;
  --fg-2: #5E6F66;
  --accent: #1D4A39;
  --accent-2: #3D6B54;
  --line: rgba(23, 37, 31, 0.1);
  --line-strong: rgba(23, 37, 31, 0.24);

  /* the dark hero and close */
  --band: #12362A;
  --band-fg: #F0F5F2;
  --band-fg-2: rgba(240, 245, 242, 0.72);
  --band-line: rgba(240, 245, 242, 0.16);

  --display: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --header: 70px;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --gap: clamp(88px, 12vw, 176px);
  --r-card: 22px;
  --r-img: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pop: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--bg); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ------------------------------------------------------------
   Type
   ------------------------------------------------------------ */
.eyebrow { font-size: 13px; font-weight: 500; color: var(--accent-2); }
.display { font-family: var(--display); font-weight: 300; font-size: clamp(46px, 7.6vw, 108px); line-height: 0.98; letter-spacing: -0.04em; max-width: 12ch; color: var(--fg); text-wrap: balance; }
.title { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; color: var(--fg-2); }
.title .accent { color: var(--fg); }
.tagline { font-family: var(--display); font-weight: 300; font-size: clamp(19px, 2vw, 25px); line-height: 1.4; max-width: 36ch; color: var(--fg); }
.lead { font-family: var(--display); font-weight: 300; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; color: var(--fg-2); max-width: 52ch; }
.accent { color: var(--accent-2); }
h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }

/* ------------------------------------------------------------
   Buttons and links
   ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--accent); color: var(--bg); font-family: var(--text); font-size: 14.5px; font-weight: 500; letter-spacing: 0.005em; line-height: 1; border: 0; border-radius: 999px; white-space: nowrap; cursor: pointer; transition: background 0.3s var(--ease), transform 0.4s var(--pop), color 0.3s; }
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn .arr { display: inline-block; transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.link { display: inline-flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 500; color: var(--accent); padding-bottom: 2px; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.4s var(--ease); }
.link::after { content: "→"; transition: transform 0.4s var(--ease); }
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------
   Header: floats over the hero with no bar of its own, frosted
   dark glass once the page has scrolled, frosted light glass
   once the hero has passed
   ------------------------------------------------------------ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; color: var(--band-fg); background-color: transparent; transition: background-color 0.35s var(--ease), color 0.35s; }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -48px; z-index: -1; background: linear-gradient(180deg, rgba(10, 32, 25, 0.42), rgba(13, 43, 33, 0)); pointer-events: none; transition: opacity 0.35s var(--ease); }
.site-header.is-scrolled { background-color: rgba(18, 54, 42, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-scrolled::before, .site-header.is-light::before { opacity: 0; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
/* the wordmark: the name set in the display face, in the current
   text colour so it turns with the header */
.wordmark { display: inline-block; font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1; letter-spacing: -0.03em; color: inherit; white-space: nowrap; transition: color 0.35s var(--ease); }
.wordmark span { font-weight: 300; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--band-fg-2); transition: color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--band-fg); }
.nav a.btn { background: var(--band-fg); color: var(--band); padding: 10px 18px; font-size: 13.5px; margin-left: 6px; }
.nav a.btn:hover { background: #fff; color: var(--band); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: -10px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-toggle:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.nav-toggle .bars { position: relative; display: block; width: 20px; height: 13px; }
.nav-toggle .bars i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 5.75px; }
.nav-toggle .bars i:nth-child(3) { top: 11.5px; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }
/* the light state */
.site-header.is-light { background-color: rgba(236, 242, 238, 0.88); color: var(--fg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-light .nav a { color: var(--fg-2); }
.site-header.is-light .nav a:hover, .site-header.is-light .nav a[aria-current="page"] { color: var(--fg); }
.site-header.is-light .nav a.btn { background: var(--accent); color: var(--bg); }
.site-header.is-light .nav a.btn:hover { background: var(--accent-2); }
.site-header.is-light .nav a.btn[aria-current="page"] { background: var(--accent-2); }

/* ------------------------------------------------------------
   Hero: the words sit low over a blurred photograph
   ------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(165deg, #1B4C39 0%, #14392C 52%, #0F2E24 100%); color: var(--band-fg); }
/* the light in the green: two layers of soft pools, each on its own clock,
   drifting a couple of pixels a second, so the pale parts are always on the
   move while the shapes stay too soft to look at */
.hero::before, .hero::after { content: ""; position: absolute; inset: -24%; z-index: 0; pointer-events: none; will-change: transform, opacity; }
.hero::before {
  background:
    radial-gradient(42% 50% at 24% 28%, rgba(58, 118, 88, 0.55), transparent 64%),
    radial-gradient(40% 38% at 70% 64%, rgba(15, 58, 43, 0.6), transparent 66%);
  filter: blur(50px);
  animation: tide-a 31s ease-in-out infinite alternate, breathe-a 23s ease-in-out infinite alternate;
}
.hero::after {
  background:
    radial-gradient(34% 42% at 78% 22%, rgba(104, 158, 128, 0.3), transparent 66%),
    radial-gradient(28% 32% at 44% 66%, rgba(88, 140, 112, 0.2), transparent 68%);
  filter: blur(60px);
  animation: tide-b 43s ease-in-out infinite alternate, breathe-b 37s ease-in-out infinite alternate;
}
@keyframes tide-a { from { transform: translate3d(-1.1%, -0.8%, 0) scale(1.03); } to { transform: translate3d(1.1%, 0.9%, 0) scale(1.07); } }
@keyframes tide-b { from { transform: translate3d(1.3%, 0.8%, 0) scale(1.06); } to { transform: translate3d(-1.4%, -1%, 0) scale(1.02); } }
@keyframes breathe-a { from { opacity: 0.75; } to { opacity: 1; } }
@keyframes breathe-b { from { opacity: 0.55; } to { opacity: 1; } }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; align-content: end; min-height: 100svh; padding-top: calc(var(--header) + clamp(56px, 10vh, 120px)); padding-bottom: clamp(56px, 8vh, 96px); }
.hero .display { grid-column: 1; color: var(--band-fg); }
.hero .display .accent { color: var(--sage); }
.hero .aside { grid-column: 2; display: flex; flex-direction: column; gap: 22px; padding-bottom: 6px; }
.hero .tagline, .hero .lead { color: var(--band-fg-2); }
.hero .cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero .btn { background: var(--band-fg); color: var(--band); }
.hero .btn:hover { background: #fff; }
.hero .link { color: var(--band-fg); background-image: linear-gradient(var(--band-fg), var(--band-fg)); }
.hero .note { font-size: 13.5px; line-height: 1.5; color: rgba(240, 245, 242, 0.5); max-width: 42ch; }
.hero .note a { color: var(--band-fg-2); border-bottom: 1px solid rgba(240, 245, 242, 0.3); transition: color 0.2s, border-color 0.2s; }
.hero .note a:hover { color: var(--band-fg); border-color: var(--band-fg); }
.hero-media { position: absolute; inset: 0; margin: 0; }
.hero-media .frame { position: absolute; inset: -8%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.6) brightness(0.9) contrast(0.8) blur(34px); opacity: 0.26; mix-blend-mode: luminosity; transform: scale(1.06); animation: drift 30s ease-in-out infinite alternate; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 46, 36, 0.4) 0%, rgba(15, 46, 36, 0) 40%, rgba(15, 46, 36, 0.82) 100%); }
@keyframes drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
.hero.short .wrap { min-height: 0; padding-top: calc(var(--header) + clamp(72px, 12vh, 140px)); padding-bottom: clamp(56px, 8vh, 96px); }
.hero.short .display { max-width: 15ch; font-size: clamp(40px, 6.4vw, 88px); }
.hero.short .aside { padding-bottom: 8px; }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.section { padding: var(--gap) 0 0; }
.head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-cta { margin-top: clamp(28px, 4vw, 44px); }

/* the model: three parts */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.three .cell { border-top: 1px solid var(--line-strong); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.three .who { font-size: 13px; font-weight: 500; color: var(--accent-2); }
.three h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.12; }
.three p { max-width: 30ch; font-size: 15px; color: var(--fg-2); }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.tm .shot { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-img); background: linear-gradient(160deg, #D5E3D7, #BCCFBF); margin-bottom: 14px; }
.tm .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(0.85); transition: transform 0.7s var(--ease); }
.tm:hover .shot img { transform: scale(1.04); }
.tm .nm { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -0.02em; }
.tm .role { font-size: 13px; font-weight: 500; color: var(--accent-2); margin-top: 4px; }
.tm .bio { font-size: 14px; line-height: 1.5; color: var(--fg-2); margin-top: 8px; max-width: 32ch; }
/* skills: two lists side by side, the second in the dark */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.skills .set { border-radius: var(--r-card); padding: clamp(26px, 3vw, 40px); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.skills .set.dark { background: var(--band); border-color: var(--band); color: var(--band-fg); }
.skills .who { font-size: 13px; font-weight: 500; color: var(--accent-2); }
.skills .dark .who { color: var(--sage); }
.skills ul { display: flex; flex-direction: column; }
.skills li { font-family: var(--display); font-weight: 300; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -0.02em; padding: 14px 0; border-top: 1px solid var(--line); }
.skills .dark li { border-color: var(--band-line); }
.also { margin-top: clamp(28px, 4vw, 44px); font-size: 15px; color: var(--fg-2); max-width: 60ch; }
.tm .bio a { color: var(--fg); border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s; }
.tm .bio a:hover { border-color: var(--fg); }

.team-grid.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.close .mail { font-size: 14px; color: var(--band-fg-2); }
.close .mail a { color: var(--band-fg); border-bottom: 1px solid rgba(240, 245, 242, 0.3); transition: border-color 0.2s; }
.close .mail a:hover { border-color: var(--band-fg); }

/* ------------------------------------------------------------
   Close: a dark card with a soft glow from below. Footer: light,
   with a line above
   ------------------------------------------------------------ */
.close { margin-top: var(--gap); padding-bottom: clamp(40px, 6vw, 80px); }
.close .band { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--band); color: var(--band-fg); padding: clamp(96px, 14vw, 200px) var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.close .band::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(60% 80% at 50% 100%, rgba(80, 133, 105, 0.55), transparent 70%); pointer-events: none; }
.close .band > * { position: relative; }
.close h2 { font-family: var(--display); font-weight: 300; font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; text-wrap: balance; color: var(--band-fg); }
.close h2 .accent { color: var(--sage); }
.close p { color: var(--band-fg-2); max-width: 50ch; font-size: 16px; }
.close .btn { background: var(--band-fg); color: var(--band); }
.close .btn:hover { background: #fff; }
.site-footer { background: var(--bg); color: var(--fg-2); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 30px; font-size: 13.5px; }
.site-footer .wordmark { font-size: 17px; color: var(--fg); }
.site-footer .row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .links a { color: var(--fg-2); transition: color 0.2s; }
.site-footer .links a:hover { color: var(--fg); }
.site-footer .links a.in { display: inline-flex; align-items: center; }
.site-footer .links .ic { display: none; width: 17px; height: 17px; fill: currentColor; }

/* 404 */
.notfound { background: var(--band); color: var(--band-fg); min-height: 100svh; padding-top: var(--header); display: flex; align-items: center; }
.notfound .wrap { width: 100%; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-top: 80px; padding-bottom: 80px; }
.notfound .display, .notfound .tagline { color: var(--band-fg); }
.notfound .display .accent { color: var(--sage); }
.notfound .btn { background: var(--band-fg); color: var(--band); }

/* ------------------------------------------------------------
   Reveals: things rise a little the first time they appear.
   The hero and the form intro reveal themselves without waiting
   for scripts or fonts.
   ------------------------------------------------------------ */
.js .r { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.r.in { opacity: 1; transform: none; }
.js .hero .r { animation: reveal 0.9s var(--ease) both; }
.js .hero .r:nth-child(2) { animation-delay: 0.1s; }
.js .hero .aside .r:nth-child(1) { animation-delay: 0.2s; }
.js .hero .aside .r:nth-child(2) { animation-delay: 0.32s; }
.js .hero .aside .r:nth-child(3) { animation-delay: 0.44s; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.three .r:nth-child(2), .team-grid .r:nth-child(2) { transition-delay: 0.07s; }
.three .r:nth-child(3), .team-grid .r:nth-child(3) { transition-delay: 0.14s; }
.team-grid .r:nth-child(4) { transition-delay: 0.21s; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; align-items: start; gap: 28px; min-height: 0; padding-top: clamp(72px, 12vh, 140px); }
  .hero .display, .hero .aside { grid-column: 1; }
  .hero .aside { padding-bottom: 0; }
  .three { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: 1fr; }
}
/* below this width the nav folds into the hamburger */
@media (max-width: 760px) {
  .site-header .bar { position: relative; padding-top: 14px; padding-bottom: 14px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px var(--pad) 20px;
    background: var(--band);
    border-bottom: 1px solid var(--band-line);
    box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.5);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0.25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav a { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--band-line); color: var(--band-fg); }
  .nav a.btn { justify-content: center; margin: 18px 0 0; padding: 15px 16px; font-size: 14px; border-bottom: 0; }
  /* with the menu open the bar itself goes solid, so the panel reads as one piece */
  .site-header:has(.nav.is-open) { background-color: var(--band); }
  .site-header.is-light:has(.nav.is-open) { background-color: var(--bg); }
  .site-header.is-light .nav { background: var(--bg); border-color: var(--line); }
  .site-header.is-light .nav a { color: var(--fg); border-color: var(--line); }
  .site-header.is-light .nav a.btn { color: var(--bg); }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .three { grid-template-columns: 1fr; gap: 22px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .team-grid.trio { grid-template-columns: 1fr; gap: 36px; }
  .tm .nm { font-size: 17px; }
  .tm .bio { font-size: 13px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer .links a:not(.in) { display: none; }
  .site-footer .links .lbl { display: none; }
  .site-footer .links .ic { display: block; }
  .close .band { padding-top: 72px; padding-bottom: 80px; }
  .hero .cta-row { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .r { opacity: 1; transform: none; transition: none; animation: none; }
  .js .hero .r { animation: none; }
  .hero-media img, .hero::before, .hero::after { animation: none; }
  .btn, .link, .tm .shot img, .site-header, .site-header::before { transition: none; }
}
