/* ==========================================================================
   Thorman Media Group — homepage
   Tokens, layout and components. Desktop values come from the Figma file
   (1440px frame); everything below ~960px is a responsive adaptation.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/dm-serif-display-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --cream: #f4f0e8;
  --paper: #fffefb;
  --ink: #22211f;
  --muted: #6f6a62;
  --line: #d8d1c5;
  --accent: #c96f4b;
  --peach: #f2d8ca;
  --sage: #dde3d4;
  --mist: #d8e4e8;
  --dark: #262824;
  --on-dark: #c7c6c0;
  --on-dark-line: rgba(255, 255, 255, 0.2);
  --footer-muted: #b9b8b2;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;

  /* Layout */
  --max: 1296px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-pad: clamp(64px, 8vw, 112px);
  --stack-gap: clamp(56px, 7vw, 100px);

  /* Shape */
  --radius-card: 16px;
  --radius-panel: 28px;
  --shadow-soft: 0 16px 40px rgba(42, 36, 27, 0.09);
}

/* --- Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  /* width/height attributes reserve space; this keeps aspect-ratio rules in charge. */
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}

/* DM Serif Display ships one weight; stop the browser faking bold. */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* --- Shared layout ------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section--cream {
  background: var(--cream);
}

.section--paper {
  background: var(--paper);
}

.section__stack {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

.section__stack--loose {
  gap: var(--stack-gap);
}

.section-head {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn img {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn:hover img {
  transform: translateX(3px);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark:hover {
  background: #3a3835;
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
}

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

.hero {
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 64px;
  background: var(--cream);
}

.hero__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.brand img {
  width: 22px;
  height: 22px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}

.nav__links a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 640fr) minmax(0, 596fr);
  gap: 60px;
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: 28px;
  justify-items: start;
}

.hero h1 {
  font-size: clamp(44px, 5.3vw, 76px);
  line-height: 0.98;
}

.hero__summary {
  max-width: 570px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.collage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 596 / 640;
  border-radius: var(--radius-panel);
  background: var(--mist);
  box-shadow: var(--shadow-soft);
}

.collage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collage__note {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 360px;
  max-width: calc(100% - 56px);
  padding: 18px;
  border-radius: var(--radius-card);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.4;
}

.collage__note img {
  flex: none;
  width: 28px;
  height: 28px;
}

/* --- What we do ---------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.capability {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.capability__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.capability__top img {
  width: 28px;
  height: 28px;
}

.capability h3 {
  font-size: 30px;
  line-height: 1.35;
}

.capability p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

/* --- Applications -------------------------------------------------------- */

.applications {
  display: grid;
  gap: var(--stack-gap);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 574fr) minmax(0, 650fr);
  gap: 72px;
  align-items: center;
}

.showcase--reverse {
  grid-template-columns: minmax(0, 650fr) minmax(0, 574fr);
}

.showcase--reverse .showcase__preview {
  order: -1;
}

.showcase__copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.showcase__label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.showcase__label img {
  width: 10px;
  height: 10px;
}

.showcase h3 {
  font-size: clamp(44px, 4.5vw, 64px);
  line-height: normal;
}

.showcase__desc {
  max-width: 500px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}

.benefits {
  width: 100%;
  max-width: 500px;
  font-size: 14px;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  line-height: 1.2;
}

.benefits img {
  flex: none;
  width: 16px;
  height: 16px;
}

.showcase__preview {
  display: grid;
  place-items: center;
  aspect-ratio: 650 / 500;
  padding: clamp(16px, 5.2%, 34px);
  border-radius: var(--radius-panel);
}

.showcase__preview--peach {
  background: var(--peach);
}

.showcase__preview--sage {
  background: var(--sage);
}

.showcase__preview--mist {
  background: var(--mist);
}

.showcase__preview img {
  width: 100%;
  max-width: 570px;
  aspect-ratio: 570 / 390;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

/* --- Approach (dark) ----------------------------------------------------- */

.section--dark {
  background: var(--dark);
  color: var(--paper);
}

.section--dark .eyebrow {
  color: var(--peach);
}

.section--dark .lead {
  max-width: 650px;
  color: var(--on-dark);
  line-height: 1.5;
}

.section--dark .section-head h2 {
  max-width: 820px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 250px;
  padding: 24px 28px 0 0;
  border-top: 1px solid var(--on-dark-line);
}

.step__num {
  color: var(--peach);
  font-size: 13px;
  line-height: 1.2;
}

.step h3 {
  font-size: 30px;
  line-height: normal;
}

.step p {
  margin-top: 12px;
  color: var(--on-dark);
  font-size: 15px;
  line-height: 1.55;
}

/* --- Outcomes ------------------------------------------------------------ */

.outcome {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 30px;
  border-radius: var(--radius-card);
  background: var(--cream);
}

.outcome__value {
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 60px;
  line-height: normal;
}

.outcome__label {
  color: var(--muted);
  line-height: 1.5;
}

.clients {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

/* --- Team ---------------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.member {
  display: grid;
  gap: 18px;
  align-content: start;
}

.member img {
  width: 100%;
  aspect-ratio: 416 / 330;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.member h3 {
  font-size: 26px;
  line-height: normal;
}

.member p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: normal;
}

/* --- Contact ------------------------------------------------------------- */

.contact {
  background: var(--peach);
  padding-block: clamp(64px, 8.4vw, 120px);
}

.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.contact__copy {
  display: grid;
  gap: 24px;
  justify-items: start;
  max-width: 800px;
}

.contact h2 {
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1.03;
}

.contact__email {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.2;
}

.contact__email:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.footer {
  padding-block: 54px;
  background: var(--ink);
  color: var(--paper);
}

.footer__stack {
  display: grid;
  gap: clamp(40px, 5vw, 70px);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 40px;
}

.footer .brand {
  font-size: 17px;
  font-weight: 700;
}

.footer .brand img {
  width: 20px;
  height: 20px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
  line-height: 1.2;
}

.footer__links a:hover,
.footer__legal a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__details {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  color: var(--footer-muted);
  font-size: 13px;
}

.footer__details address {
  font-style: normal;
  line-height: 1.6;
}

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

@media (min-width: 1000px) {
  .hero {
    min-height: 920px;
  }
}

@media (max-width: 1100px) {
  .showcase,
  .showcase--reverse {
    gap: 48px;
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .collage {
    aspect-ratio: 4 / 3.6;
  }

  .nav__links a:not(.btn) {
    display: none;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .capability {
    min-height: 200px;
  }

  .showcase,
  .showcase--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .showcase--reverse .showcase__preview {
    order: 0;
  }

  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .process {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    min-height: 0;
    padding-bottom: 32px;
  }

  .team {
    grid-template-columns: minmax(0, 1fr);
  }

  .collage__note {
    bottom: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
  }

  .btn {
    min-height: 48px;
  }

  .footer__details {
    flex-direction: column;
    align-items: flex-start;
  }
}
