/* Odinn Media site styles.
   Colors and fonts live in the :root block below. */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --gray-band: #474747;
  --off-white: #F5F5F4;
  --soft-text: #BDBDBD;
  --line: #262626;
  --field: #D9D9D9;
  --accent: #FFFFFF; /* menu underline; try #56ABA7 (teal) or #CC985D (amber) */
  --heading: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --page: 1320px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--white); }
a:hover { color: #D6D6D6; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 500; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--white); color: var(--black); padding: 8px 14px; z-index: 20;
}
.skip-link:focus { left: 8px; }

/* Header */
.site-header .wrap {
  padding-block: 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px;
}
.site-header .logo img { height: 78px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 30px; font-size: 14px; letter-spacing: 0.06em; }
.site-nav a { text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* Buttons */
.pill {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  border: 0;
  cursor: pointer;
}
.pill:hover { background: #E6E6E6; color: var(--black); }
.pill.dark { background: var(--black); color: var(--white); }
.pill.dark:hover { background: #2A2A2A; color: var(--white); }

/* Home */
.hero-text { padding-block: 120px 72px; }
.hero-text h1 { max-width: 980px; font-size: clamp(34px, 4.3vw, 58px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: pretty; }

.drift-frame { position: relative; overflow: hidden; }
.drift-frame > img {
  position: absolute; left: 0; width: 100%; object-fit: cover; will-change: transform;
}
.home-hero { height: clamp(260px, 44vw, 640px); background: #0E1A12; }
.home-hero > img { top: -22%; height: 144%; }

.intro { padding-block: 96px 112px; display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.intro h2 { max-width: 900px; font-size: clamp(22px, 2.2vw, 31px); line-height: 1.35; }

.featured { background: #111111; }
.featured > img { top: -28%; height: 156%; }
.featured-inner {
  position: relative; background: rgba(0, 0, 0, 0.62);
}
.featured-inner .wrap {
  max-width: 1120px; padding-block: 112px;
  display: flex; flex-direction: column; align-items: center; gap: 48px; text-align: center;
}
.featured h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.covers { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; align-items: end; }
.covers img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.featured p { max-width: 720px; font-size: 19px; }

.light { background: var(--off-white); color: var(--black); }
.light .wrap { max-width: 900px; padding-block: 128px; display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.light h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.22; text-wrap: balance; }

.gallery .wrap { padding-block: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.testimonials { background: var(--gray-band); }
.testimonials .wrap { max-width: 1120px; padding-block: 112px; display: flex; align-items: center; gap: 24px; }
.round-btn {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7); background: transparent; color: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.round-btn:hover { background: rgba(255, 255, 255, 0.12); }
.quotes { flex: 1 1 auto; min-width: 0; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; text-align: center; }
.quotes figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.quotes blockquote { margin: 0; max-width: 780px; font-family: var(--heading); font-weight: 400; font-size: clamp(20px, 2vw, 26px); line-height: 1.5; }
.quotes figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 13px; letter-spacing: 0.08em; color: #E2E2E2; }
.quotes figcaption strong { font-weight: 500; color: var(--white); }
.dots { display: flex; gap: 10px; }
.dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); }
.dots span.on { background: var(--white); }

.clients { background: var(--white); color: var(--black); }
.clients .wrap { max-width: 1180px; padding-block: 120px 136px; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.clients h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.2; text-align: center; }
.logo-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 52px; }
.logo-cloud li { display: flex; align-items: center; justify-content: center; }
.logo-cloud img { max-width: 40vw; object-fit: contain; }

.get-in-touch { position: relative; overflow: hidden; background: var(--black); }
.get-in-touch > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.get-in-touch .wrap { position: relative; max-width: 1120px; padding-block: 152px; display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.get-in-touch h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.1; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.site-footer .name { font-family: var(--heading); font-weight: 500; font-size: 17px; letter-spacing: 0.04em; }
.site-footer .legal { font-size: 13px; color: var(--soft-text); }
.site-footer .legal a { color: #E2E2E2; }

/* About */
.about-photo { padding-top: 24px; }
.about-photo img { width: 100%; height: clamp(300px, 50vw, 720px); object-fit: cover; object-position: center 62%; }
.bios { padding-block: 80px 136px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px 80px; }
.bios p { font-size: 20px; line-height: 1.75; min-width: 0; }

/* Services */
.services { padding-block: 96px 112px; display: flex; flex-direction: column; gap: 80px; }
.services h1 { text-align: center; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.1; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 64px 56px; }
.service-list div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.service-list h2 { font-size: 27px; line-height: 1.25; }
.services-photo { padding-bottom: 112px; }
.services-photo img { width: 100%; height: clamp(240px, 40vw, 560px); object-fit: cover; object-position: center 55%; }

/* Contact */
.contact .wrap { max-width: 760px; padding-block: 104px 136px; display: flex; flex-direction: column; gap: 56px; }
.contact h1 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.35; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-form legend { padding: 0; margin-bottom: 10px; font-size: 15px; }
.name-row { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.field { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; }
.name-row .field label { font-size: 14px; }
.field label span { font-size: 14px; color: var(--soft-text); }
.field input, .field textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #A6A6A6; border-radius: 0;
  background: var(--field); color: var(--black); width: 100%;
}
.field input { min-height: 48px; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; }
.contact-form .pill { align-self: flex-start; min-height: 48px; padding-inline: 36px; }
.contact-form .pill[disabled] { opacity: 0.6; cursor: progress; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Legal and simple text pages */
.text-page .wrap { max-width: 860px; padding-block: 96px 136px; display: flex; flex-direction: column; gap: 22px; }
.text-page h1 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; margin-bottom: 12px; }
.text-page ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .site-header .logo img { height: 60px; }
  .hero-text { padding-block: 72px 48px; }
  .testimonials .wrap { flex-wrap: wrap; justify-content: center; }
  .quotes { order: -1; flex-basis: 100%; min-height: 0; }
  .logo-cloud { gap: 28px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .drift-frame > img { transform: none !important; }
}
