/* Alwyn Comia — personal one-pager */

:root {
  --teal-deep: #00312E;
  --teal: #21867E;
  --teal-light: #3FAFA3;
  --mint: #ECF5F5;
  --cream: #F6F9F8;
  --charcoal: #1D1E20;
  --gold: #C9A86A;
  --gold-soft: rgba(201, 168, 106, 0.55);
  --white: #ffffff;
  --on-dark: #E8F2F1;
  --muted-dark: #C6DCDA;
  --muted: #4A5554;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --nav-h: 76px;
  --pad: clamp(1.35rem, 5vw, 6.5rem);
  --max: 1180px;
  --max-wide: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-lock { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
address { font-style: normal; }

::selection {
  background: var(--gold);
  color: var(--teal-deep);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--gold);
  color: var(--teal-deep);
  padding: 0.6rem 1rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.skip:focus { top: 1rem; }

/* typography */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

.dark .eyebrow,
.hero .eyebrow,
.close .eyebrow { color: var(--teal-light); }

.rule {
  display: block;
  width: 72px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.15rem 0 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

h1, h2, .serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; }

/* layout */
.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}
.wrap-wide {
  width: min(var(--max-wide), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 9vw, 8.5rem) 0;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.7rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.btn:hover,
.btn:focus-visible {
  background: var(--gold);
  color: var(--teal-deep);
  outline: none;
}
.btn-sm { padding: 0.75rem 1.15rem; font-size: 0.64rem; }

/* photos + fallbacks */
.photo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(63, 175, 163, 0.18), transparent 60%),
    var(--teal-deep);
  border: 1px solid var(--gold-soft);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 2;
}
.photo-hero img { object-position: center 18%; }
.photo-about img { object-position: 40% 16%; }
.photo-closing img { object-position: 50% 18%; }
.photo.is-fallback img { display: none; }

/* Soft teal vignette so the studio backdrop eases into the hero */
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 70% at 50% 32%,
      rgba(0, 49, 46, 0) 0%,
      rgba(0, 49, 46, 0) 46%,
      rgba(0, 49, 46, 0.28) 72%,
      rgba(0, 49, 46, 0.78) 100%);
  box-shadow: inset 0 0 70px 16px rgba(0, 49, 46, 0.45);
}
.photo-closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 32%,
      rgba(0, 49, 46, 0) 42%,
      rgba(0, 49, 46, 0.22) 72%,
      rgba(0, 49, 46, 0.55) 100%);
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  z-index: 1;
}
.photo-fallback .mono {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 7vw, 5rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  line-height: 1;
}
.photo-fallback .cap {
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.photo-frame {
  position: relative;
  padding: 0 1.15rem 1.15rem 0;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 1.1rem 0 0 1.1rem;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
  z-index: 0;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--on-dark);
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.nav-inner {
  width: min(var(--max-wide), calc(100% - var(--pad) * 2));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(0, 49, 46, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gold-soft);
}

/* When the hero is not under the nav (scrolled past or other pages), keep dark bar.
   Hero is first, so a negative-margin trick: nav sits on top of hero. */
body { /* nav overlays hero */
}
.hero {
  margin-top: calc(var(--nav-h) * -1);
  padding-top: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  z-index: 110;
}
.monogram {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--gold);
  position: absolute;
  left: 11px;
  top: 20px;
  box-shadow: 0 -7px 0 var(--gold), 0 7px 0 var(--gold);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 1.5px;
  background: var(--gold);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav.is-open .nav-toggle span {
  background: transparent;
  box-shadow: none;
}
.nav.is-open .nav-toggle span::before { opacity: 1; transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after { opacity: 1; transform: rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}
.nav-menu a:not(.btn) {
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
  opacity: 0.88;
  transition: color 0.25s, opacity 0.25s;
}
.nav-menu a:not(.btn):hover,
.nav-menu a:not(.btn):focus-visible {
  color: var(--gold);
  opacity: 1;
  outline: none;
}

/* hero */
.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 106, 0.1), transparent 46%),
    radial-gradient(ellipse at 10% 90%, rgba(33, 134, 126, 0.28), transparent 50%),
    var(--teal-deep);
  color: var(--on-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  width: min(var(--max-wide), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 3.5rem 0 5.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.8fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.4rem, 7.2vw, 6.6rem);
  line-height: 0.95;
  font-weight: 500;
  color: var(--white);
  margin: 0.35rem 0 0;
}
.hero .lede {
  max-width: 34em;
  margin: 1.75rem 0 2.2rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted-dark);
}
.hero .photo { aspect-ratio: 3 / 4; max-height: 78vh; }
.hero .photo-frame { max-width: 480px; margin-left: auto; width: 100%; }

/* about */
.about {
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}
.about .photo { aspect-ratio: 3 / 4; }
.about .photo-frame { max-width: 420px; }
.about h2 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.15;
  color: var(--teal-deep);
  margin: 0.2rem 0 1.4rem;
}
.about .body {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36em;
}

/* experience */
.experience { background: var(--white); }
.experience .intro { margin-bottom: 3.2rem; }
.experience h2.eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: 0.34em;
  color: var(--teal-deep);
  line-height: 1.2;
}
.exp-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(0, 49, 46, 0.12);
}
.exp-item {
  padding: 2.4rem 2rem 2.6rem;
  border-bottom: 1px solid rgba(0, 49, 46, 0.12);
  border-left: 1px solid rgba(0, 49, 46, 0.12);
}
.exp-item:first-child {
  padding-left: 0;
  border-left: 0;
}
.exp-item:last-child {
  padding-right: 0;
}
.exp-item .dates {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.exp-item h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 1.6vw, 1.75rem);
  font-weight: 500;
  color: var(--teal-deep);
  line-height: 1.15;
}
.exp-item .org {
  margin: 0.35rem 0 1rem;
  color: var(--teal);
  font-size: 0.95rem;
}
.exp-item p { color: var(--muted); max-width: 36em; }

/* services */
.help { background: var(--mint); }
.help .intro {
  text-align: center;
  margin-bottom: 3.4rem;
}
.help h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  color: var(--teal-deep);
  line-height: 1.15;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem;
}
.service {
  background: var(--white);
  border-top: 3px solid var(--teal-deep);
  padding: 2rem 1.45rem 2.1rem;
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(0, 49, 46, 0.06);
}
.service.is-featured {
  background: var(--teal-deep);
  color: var(--on-dark);
  border-top-color: var(--gold);
}
.service .mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--teal-deep);
  margin-bottom: 1.4rem;
}
.service.is-featured .mark { color: var(--gold); }
.service h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--teal-deep);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.service.is-featured h3 { color: var(--white); }
.service p { font-size: 0.95rem; line-height: 1.65; color: var(--muted); }
.service.is-featured p { color: var(--muted-dark); }

/* meet the AI team */
.aiteam {
  background: var(--cream);
}
.aiteam-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2.2rem, 6vw, 6rem);
  align-items: center;
}
.aiteam-copy h2 {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.15;
  color: var(--teal-deep);
  margin: 0.2rem 0 1.3rem;
}
.aiteam-copy p {
  max-width: 28em;
  color: var(--muted);
  font-size: 1.08rem;
}
.aiteam-media {
  margin: 0;
  justify-self: end;
}
.video-frame {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 9 / 16;
  background: var(--teal-deep);
  border: 1px solid var(--gold);
  box-shadow: 1.1rem 1.1rem 0 0 transparent;
  outline: 1px solid var(--gold-soft);
  outline-offset: 10px;
  overflow: hidden;
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--teal-deep);
  vertical-align: middle;
}
.aiteam-media figcaption {
  margin-top: 1.35rem;
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* method */
.method { background: var(--teal-deep); color: var(--on-dark); }
.method .intro { text-align: center; margin-bottom: 3.2rem; }
.method h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  color: var(--white);
  line-height: 1.15;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.step {
  border: 1px solid var(--gold-soft);
  padding: 1.9rem 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}
.step .num {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.85rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--gold);
  line-height: 1;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0.7rem 0 0.25rem;
  color: var(--white);
  line-height: 1.2;
}
.step .tag {
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 0.9rem;
}
.step p { color: var(--muted-dark); font-size: 0.98rem; }
.method-loop {
  text-align: center;
  margin: 2.6rem 0 0;
  color: var(--muted-dark);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.method-loop svg {
  width: 15px;
  height: 15px;
  margin-right: 0.45rem;
  vertical-align: -2px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
}

/* compass */
.compass-block {
  padding-top: clamp(4rem, 8vw, 7rem);
}
.compass-block .intro { text-align: center; margin-bottom: 1.2rem; }
.compass-block h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  color: var(--white);
  line-height: 1.15;
}
.compass {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 1;
  margin: 1.5rem auto 0;
}
.compass-ring {
  position: absolute;
  inset: 22%;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  pointer-events: none;
}
.compass-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(200px, 30%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #0B4A46;
  border: 1.5px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.compass-core .core-title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  line-height: 1.1;
  color: var(--white);
}
.compass-core .core-sub {
  margin-top: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.compass-node {
  position: absolute;
  left: calc(50% + 40% * cos(calc(var(--i) * 45deg - 90deg)));
  top: calc(50% + 40% * sin(calc(var(--i) * 45deg - 90deg)));
  transform: translate(-50%, -50%);
  width: min(200px, 32%);
  text-align: center;
  background: var(--teal-deep);
  border: 1px solid var(--gold-soft);
  padding: 0.7rem 0.7rem 0.8rem;
}
.compass-node h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.1;
}
.compass-node p {
  font-size: 0.75rem;
  color: var(--muted-dark);
  margin-top: 0.2rem;
  line-height: 1.35;
}
.compass-note {
  text-align: center;
  color: var(--muted-dark);
  margin-top: 1.6rem;
  font-size: 0.98rem;
}

/* the shift */
.shift {
  background: var(--cream);
}
.shift .intro { text-align: center; margin-bottom: 3rem; }
.shift h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  color: var(--teal-deep);
  line-height: 1.15;
}
.shift-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
}
.shift-col {
  padding: 2.5rem 2.6rem;
}
.shift-col h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.shift-col.before {
  background: var(--white);
  border: 1px solid #d5e5e3;
  color: var(--muted);
}
.shift-col.before h3 { color: var(--muted); }
.shift-col.after {
  background: var(--teal-deep);
  color: var(--on-dark);
}
.shift-col.after h3 { color: var(--white); }
.shift-col li {
  list-style: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 1.02rem;
}
.shift-col.before li:last-child,
.shift-col.after li:last-child { border-bottom: 0; }
.shift-col.after li { border-bottom-color: rgba(255, 255, 255, 0.12); }
.shift-col ul { margin: 0; padding: 0; }
.shift-arrow {
  width: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2.2rem;
  font-family: var(--font-serif);
}

/* ninety */
.ninety { background: var(--teal-deep); color: var(--on-dark); }
.ninety .intro { text-align: center; margin-bottom: 3.4rem; }
.ninety h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  color: var(--white);
  line-height: 1.15;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: var(--gold);
}
.time {
  text-align: center;
  position: relative;
  z-index: 1;
}
.time .dot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--teal-deep);
  margin: 0 auto 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--gold);
}
.time h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);
}
.time .span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin: 0.3rem 0 1rem;
}
.time p { color: var(--muted-dark); line-height: 1.7; }

/* who it's for */
.for {
  background: var(--white);
  text-align: center;
}
.for h2 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.25;
  color: var(--teal-deep);
  font-weight: 500;
  max-width: 18em;
  margin: 0 auto;
  font-style: italic;
}

/* closing */
.close {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 106, 0.1), transparent 50%),
    var(--teal-deep);
  color: var(--on-dark);
  text-align: center;
}
.close .photo-closing {
  width: 184px;
  height: 184px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  border: 1.5px solid var(--gold);
  overflow: hidden;
}
.close .photo-closing.photo { border-radius: 50%; }
.close h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.15;
  color: var(--white);
  max-width: 16em;
  margin: 0 auto 2rem;
}
.close .email {
  display: inline-block;
  margin-top: 1.6rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.close .email:hover,
.close .email:focus-visible { text-decoration: underline; outline: none; }
.close .executask {
  max-width: 34em;
  margin: 2rem auto 0;
  color: var(--muted-dark);
  font-size: 0.98rem;
}

/* footer */
.footer {
  background: var(--teal-deep);
  color: var(--muted-dark);
  text-align: center;
  padding: 0 0 2.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-top: 0;
}
.footer .rule { margin: 0 auto 1.4rem; }

/* motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.hero .reveal { }
.hero.is-ready .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* responsive */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service.is-featured { grid-column: span 1; }
  .method-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--teal-deep);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    padding: 5rem 2rem 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }
  .nav.is-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a:not(.btn) {
    font-family: var(--font-serif);
    font-size: 2rem;
    letter-spacing: 0.04em;
    text-transform: none;
    font-weight: 500;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 2.2rem 0 4rem;
    gap: 2.6rem;
  }
  .hero .photo-frame {
    max-width: 360px;
    margin: 0 auto;
    padding: 0 0.8rem 0.8rem 0;
  }
  .hero .photo { max-height: 62vh; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .about .photo-frame { max-width: 400px; margin: 0 auto; width: 100%; padding: 0 0.8rem 0.8rem 0; }
  .about .photo { aspect-ratio: 3 / 4; }
  .photo-frame::after { inset: 0.8rem 0 0 0.8rem; }
  .exp-list { grid-template-columns: 1fr; }
  .exp-item,
  .exp-item:first-child,
  .exp-item:last-child {
    padding: 2rem 0;
    border-left: 0;
  }
  .aiteam-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .aiteam-media { justify-self: center; }
  .video-frame { width: min(100%, 280px); margin-inline: auto; }
  .aiteam-media figcaption { max-width: 280px; margin-inline: auto; text-align: center; }
  .compass {
    aspect-ratio: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    height: auto;
  }
  .compass-ring { display: none; }
  .compass-core {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    grid-column: 1 / -1;
    aspect-ratio: auto;
    border-radius: 6px;
    height: auto;
    min-height: 0;
    padding: 1.4rem 1rem;
    margin-bottom: 0.4rem;
  }
  .compass-node {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: auto;
  }
  .shift-grid { grid-template-columns: 1fr; }
  .shift-arrow {
    width: auto;
    height: 64px;
    transform: rotate(90deg);
  }
  .timeline { grid-template-columns: 1fr; gap: 2.2rem; }
  .timeline::before {
    top: 0;
    bottom: 0;
    left: 36px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .time { text-align: left; padding-left: 6.2rem; }
  .time .dot {
    position: absolute;
    left: 0;
    margin: 0;
  }
}

@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .brand-name { display: none; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
  .exp-item h3 { font-size: 1.55rem; }
  .time:last-child::after {
    content: "";
    position: absolute;
    left: 0;
    top: 72px;
    width: 72px;
    bottom: 0;
    background: var(--teal-deep);
  }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .hero .btn { width: auto; }
  .compass { grid-template-columns: 1fr; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .compass { width: min(640px, 100%); }
  .compass-node { width: min(170px, 30%); padding: 0.55rem 0.5rem; }
  .compass-node h3 { font-size: 1.1rem; }
}

/* AI team: three videos */
.aiteam-grid { grid-template-columns: 1fr; gap: 3rem; }
.aiteam-copy { text-align: center; }
.aiteam-copy p { margin-inline: auto; }
.aiteam-copy .rule { margin-inline: auto; }
.aiteam-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  gap: clamp(1.6rem, 4vw, 3.2rem);
}
.aiteam-videos .aiteam-media { justify-self: center; width: 100%; }
.aiteam-videos .video-frame { width: 100%; }
.aiteam-videos figcaption { max-width: none; text-align: center; }
@media (max-width: 860px) {
  .aiteam-videos { grid-template-columns: 1fr; gap: 3rem; }
  .aiteam-videos .aiteam-media { max-width: 280px; }
}

/* ExecuTask block */
.close .executask-block { margin: 2.5rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(201,162,74,0.35); max-width: 34em; }
.close .executask-logo { display: inline-block; }
.close .executask-logo img { width: 260px; height: auto; display: block; margin: 0 auto; opacity: 0.95; transition: opacity .2s; }
.close .executask-logo:hover img { opacity: 1; }
.close .executask-block .executask { margin-top: 1.1rem; }
.close .executask a { color: inherit; text-decoration: underline; text-decoration-color: rgba(201,162,74,0.6); text-underline-offset: 3px; }
.close .executask a:hover { color: #fff; }
.close .executask-site { display: inline-block; margin-top: 0.6rem; color: var(--gold, #c9a24a); letter-spacing: 0.06em; font-size: 0.9rem; text-decoration: none; }
.close .executask-site:hover { text-decoration: underline; }
