/* ==========================================================================
   Ryan Smith Says: homepage
   Palette and type follow the approved mockup.
   ========================================================================== */

:root {
  --navy-900: #0a1830;
  --navy-800: #0d2140;
  --blue-700: #0b2f66;
  --cobalt: #0a3fe0;
  --gold: #e6bd55;
  --gold-deep: #c99a2e;
  --cream: #f7f4ed;
  --sand: #efe6d5;
  --ink: #0a0f1c;
  --ink-soft: #3b4354;
  --mist: #9fb0cc;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  /* PHOTO SLOTS
     Paths are relative to this stylesheet. A slot pointing at a missing file
     falls back to its gradient, so nothing breaks before a photo is added.
     The portrait currently lives at the repo root (ryan-portrait.jpg).
     To use a photo on another slot, set e.g.
     --photo-health: url("../assets/health.jpg");                        */
  --photo-portrait: url("../ryan-portrait.jpg");
  --photo-health: url("../Health.png");
  --photo-launch: url("../MiCloud-Video.png");
  --photo-gtm: url("../ActivityCloud-Video.png");
  --photo-post-portrait: url("../ryan-portrait.jpg");
  --photo-post-mic: none;
  --photo-post-leaf: none;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}
.site-header :focus-visible,
.proof :focus-visible,
.story :focus-visible,
.closing :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Shared type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: .98;
  letter-spacing: -.005em;
  color: var(--ink);
}
.display--sm { font-size: clamp(2rem, 4vw, 3rem); }

.eyebrow {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow--rule { display: flex; align-items: center; gap: .8rem; }
.eyebrow--rule::before {
  content: "";
  flex: none;
  width: 2rem;
  height: 2px;
  background: var(--gold);
}
.eyebrow--stack::before {
  content: "";
  display: block;
  width: 2rem;
  height: 2px;
  margin-bottom: .9rem;
  background: var(--gold);
}
.eyebrow--light { color: var(--mist); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--sm { padding: .7rem 1.4rem; font-size: .7rem; }
.btn--blue { background: var(--cobalt); color: #fff; }
.btn--blue:hover { background: #0832b8; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #f0cd72; }
.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  padding: 1rem 1.4rem;
}
.btn--outline:hover { background: var(--gold); color: var(--ink); }

.link-arrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-900);
  padding-bottom: 2px;
  border-bottom: 2px solid var(--gold);
}
.link-arrow:hover { border-bottom-color: var(--navy-900); }
.link-arrow--sm { font-size: .68rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  color: #fff;
}
.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: .9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* The boxed SAYS from the logo: reversed type in a solid box */
.wordmark__box {
  background: #fff;
  color: var(--navy-900);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .58em;
  letter-spacing: .26em;
  padding: .28em .2em .28em .5em;
}

.site-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.site-nav a { font-size: .82rem; font-weight: 500; opacity: .92; }
.site-nav a:hover { color: var(--gold); opacity: 1; }

/* ---------- Hero ---------- */

.hero { background: var(--cream); overflow: hidden; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: stretch;
}
.hero__copy {
  padding: clamp(2rem, 3.5vw, 3.25rem) 1.5rem clamp(2rem, 3.5vw, 3.25rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  align-self: center;
}
.hero__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 7.6vw, 6.6rem);
  line-height: .88;
  letter-spacing: -.022em;
  color: var(--ink);
}
.hero__title span { display: block; white-space: nowrap; }
.brush { position: relative; width: fit-content; padding-bottom: .12em; }
.brush::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: .15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C70 3 150 4 230 6c50 1 110 0 167-2-70 6-150 6-230 6C110 10 55 11 3 9z' fill='%23c99a2e'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: left center;
  animation: draw .9s .25s ease-out both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__lede {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
}
.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.hero__stage { position: relative; min-height: 22rem; }
.hero__photo {
  position: absolute;
  inset: 0;
  background-color: #0f1a2e;
  /* Layer 1: the portrait. Layer 2: navy fallback that matches the photo's
     wall color, so the hero still looks right if the image is missing. */
  background-image:
    var(--photo-portrait),
    linear-gradient(120deg, #0f1a2e 0%, #16233d 55%, #22304d 100%);
  background-size: cover, 100% 100%;
  /* The subject sits right of center in the photo; bias the crop toward him. */
  background-position: 64% 22%, center;
  background-repeat: no-repeat;
}
.hero__note {
  position: absolute;
  z-index: 2;
  top: 1.5rem;
  left: 1.5rem;
  width: 11rem;
  font-family: var(--font-script);
  font-size: 1.45rem;
  line-height: 1.2;
  color: #f3e9d0;
  text-shadow: 0 1px 8px rgba(5, 10, 22, .6);
  transform: rotate(-9deg);
}

/* ---------- Proof bar ---------- */

.proof {
  color: #fff;
  background: var(--navy-900) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 110' fill='none' stroke='%236ea0ff' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M0 62C50 22 90 92 150 52S230 32 260 47'/%3E%3Cpath d='M0 70C50 30 90 100 150 60S230 40 260 55'/%3E%3Cpath d='M0 78C50 38 90 108 150 68S230 48 260 63'/%3E%3Cpath d='M0 86C50 46 90 116 150 76S230 56 260 71'/%3E%3C/svg%3E") left center / auto 100% no-repeat;
}
.proof__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 2.25rem var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.1fr;
  align-items: center;
}
.proof__item {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: .3rem;
  padding: .25rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, .28);
  text-align: center;
}
.proof__item dd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}
.proof__item dt {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.proof__tag {
  padding-left: 2rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.7;
  color: #6ea0ff;
}
.proof__tag::after {
  content: "";
  display: block;
  width: 1.6rem;
  height: 2px;
  margin-top: .6rem;
  background: var(--gold);
}

/* ---------- Featured work ---------- */

.work { padding-block: clamp(3rem, 6vw, 4.5rem); }
.work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.work__head .eyebrow { margin-bottom: 1rem; }
.work__grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  position: relative;
  min-height: 11.5rem;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.card::before { /* dark scrim so type stays readable over any photo */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 14, 30, .78) 0%, rgba(6, 14, 30, .25) 70%, rgba(6, 14, 30, .1) 100%);
}
.card__body {
  position: relative;
  align-self: stretch;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: inherit;
}
.card__body:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.card__body:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
.card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  max-width: 11rem;
}
.card h3::after {
  content: "";
  display: block;
  width: 1.7rem;
  height: 2px;
  margin-top: .8rem;
  background: var(--gold);
}
.card__result, .card__meta { margin-top: .9rem; font-size: .95rem; }
.card__result span {
  display: block;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .8;
}
.card__result { font-family: var(--font-body); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.card--health {
  background-image: var(--photo-health), linear-gradient(115deg, #2b5f86 0%, #4c86a8 45%, #c9d6de 100%);
}
.card--launch {
  background-image: var(--photo-launch), linear-gradient(160deg, #0a1a33 0%, #17345f 55%, #3a5f94 100%);
}
.card--gtm {
  background-image: var(--photo-gtm), linear-gradient(170deg, #3b3f57 0%, #c9793c 55%, #f0b467 100%);
}

/* ---------- Storytelling band ---------- */

.story { background: var(--navy-900); color: #fff; }
.story__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 3rem var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 2.25rem;
}
.story__mark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 8rem;
  line-height: .8;
  height: 3.4rem;
  color: #35507d;
}
.story__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.9vw, 3.1rem);
  line-height: 1;
}
.story__title em {
  font-style: italic;
  font-weight: 800;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .12em;
  text-decoration-color: rgba(230, 189, 85, .7);
}
.story__title .nb { white-space: nowrap; }
.story__inner .btn { display: block; max-width: 14.5rem; line-height: 1.5; text-align: left; }
.story__text {
  padding-inline: 2rem;
  border-inline: 1px solid rgba(255, 255, 255, .25);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.7;
  color: #dfe6f3;
}

/* ---------- How I can help ---------- */

.help { padding-block: clamp(2.5rem, 5vw, 3.5rem); background: var(--cream); }
.help__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 2rem 0;
}
.help__intro .eyebrow { margin-top: 1rem; }
.help__col { padding: .25rem 1.75rem; border-left: 1px solid #cfc8b8; }
.help__col .icon { color: var(--navy-900); margin-bottom: .75rem; }
.help__col h3 {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.help__col p {
  margin: .6rem 0 1.1rem;
  max-width: 17rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Insights ---------- */

.insights { background: var(--sand); padding-block: 2.25rem; }
.insights__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2.5fr);
  align-items: center;
  gap: 1.5rem 2.5rem;
}
.insights__intro .eyebrow { margin-bottom: .9rem; }
.insights__intro .display--sm { font-size: clamp(1.8rem, 3.3vw, 2.5rem); }
.insights__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post { display: flex; align-items: center; gap: 1rem; }
.post h3 {
  margin-bottom: .6rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
}
.post__thumb {
  flex: none;
  width: 6rem;
  height: 6.2rem;
  background-size: cover;
  background-position: center;
}
.post__thumb--portrait {
  background-image: var(--photo-post-portrait), linear-gradient(160deg, #6d5646 0%, #2b2622 100%);
  background-size: 330% auto, 100% 100%; /* zoom in on the face */
  background-position: 61% 7%, center;
  background-repeat: no-repeat;
}
.post__thumb--mic { background-image: var(--photo-post-mic), linear-gradient(160deg, #26314a 0%, #0b1220 100%); }
.post__thumb--leaf { background-image: var(--photo-post-leaf), linear-gradient(160deg, #a7c1a0 0%, #35573f 100%); }

/* ---------- Closing CTA ---------- */

.closing { background: var(--blue-700); color: #fff; }
.closing__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem 2rem;
}
.closing__title {
  margin-top: .3rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  line-height: 1;
}
.closing__title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  color: var(--gold);
}
.closing__tag {
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, .3);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.8;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-900); color: #fff; }
.site-footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 2.75rem var(--gutter) 2rem;
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 2rem 3.5rem;
  align-items: start;
}
.site-footer__logo { display: block; color: #fff; }
.site-footer__logo svg { height: 150px; width: auto; display: block; }
.site-footer__title {
  margin-bottom: .8rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.site-footer li { font-size: .88rem; line-height: 2; }
.site-footer li a { opacity: .9; }
.site-footer li a:hover { color: var(--gold); opacity: 1; }
.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .65;
}

/* ---------- Cookie consent ---------- */

.cookie-banner {
  position: fixed;
  z-index: 200;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 34rem;
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 10px 30px rgba(5, 10, 22, .35);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p {
  flex: 1 1 16rem;
  font-size: .85rem;
  line-height: 1.55;
  color: #dfe6f3;
}
.cookie-banner__actions { display: flex; gap: .75rem; flex-wrap: wrap; flex: none; }
.cookie-banner .btn { padding: .65rem 1.2rem; font-size: .68rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { min-height: 26rem; order: -1; }
  .hero__copy { padding: 2rem var(--gutter) 2.5rem; }
  .hero__note { left: var(--gutter); }

  .work__grid { grid-template-columns: 1fr; }
  .card { min-height: 12rem; }

  .story__inner { grid-template-columns: 1fr; }
  .story__mark { height: 3.2rem; font-size: 7rem; }
  .story__text { padding: 1rem 0; border-inline: 0; border-block: 1px solid rgba(255, 255, 255, .25); }
  .story__inner .btn { justify-self: start; }

  .help__inner { grid-template-columns: 1fr; }
  .help__col { padding: 1.25rem 0 0; border-left: 0; border-top: 1px solid #cfc8b8; }

  .insights__inner { grid-template-columns: 1fr; }
  .insights__list { grid-template-columns: 1fr; }

  .closing__inner { grid-template-columns: 1fr; }
  .closing__inner .btn { justify-self: start; }
  .closing__tag { padding: 1rem 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .3); }
}

@media (max-width: 720px) {
  .site-header__inner { gap: .5rem 1rem; }
  .wordmark { font-size: 1.45rem; }
  .site-header .btn--sm { padding: .6rem 1rem; }
  .site-nav { order: 3; width: 100%; gap: 1.25rem; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__logo { grid-column: 1 / -1; }
  .site-footer__logo svg { height: 120px; }

  .hero__photo { background-position: 52% 22%, center; }
  .hero__note { width: 9rem; font-size: 1.2rem; }

  .proof__inner { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; }
  .proof__item { border-right: 0; }
  .proof__item:nth-of-type(3) { grid-column: 1 / -1; }
  .proof__tag { grid-column: 1 / -1; padding-left: 0; text-align: center; }
  .proof__tag br { display: none; }
  .proof__tag::after { margin-inline: auto; }

  .cookie-banner { left: .75rem; right: .75rem; bottom: .75rem; padding: 1rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brush::after { animation: none; }
  .btn { transition: none; }
}
