/* ==========================================================================
   EML MEDIA DOO — company site
   Dark, typographic, no external assets. One stylesheet, no framework.
   ========================================================================== */

:root {
  --ink:        #0a0b0e;
  --surface:    #101319;
  --surface-2:  #161a22;
  --line:       rgba(255, 255, 255, .085);
  --line-soft:  rgba(255, 255, 255, .05);
  --text:       #e8eaef;
  --text-dim:   #b3b9c6;
  --muted:      #878f9f;
  --gold:       #d5a24a;
  --gold-lift:  #e8b862;
  --gold-soft:  rgba(213, 162, 74, .11);
  --gold-line:  rgba(213, 162, 74, .32);

  --wrap:   1160px;
  --radius: 14px;
  --radius-sm: 9px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lift); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { margin: 0 0 .55em; line-height: 1.15; letter-spacing: -.021em; font-weight: 650; }
h1 { font-size: clamp(2.05rem, 1.4rem + 2.5vw, 3.15rem); }
h2 { font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.25rem); }
h3 { font-size: 1.16rem; letter-spacing: -.012em; }
p  { margin: 0 0 1.05em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: #14161b; padding: 10px 18px; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

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

.icon { width: 1em; height: 1em; flex: none; }

/* ------------------------------------------------------------------ header */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 14, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold) 0%, #a97a2c 100%);
  color: #14100a; font-weight: 800; font-size: .87rem; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 680; letter-spacing: .015em; font-size: 1.03rem; }
.brand-sub { font-size: .715rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--text-dim); font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.on { color: var(--gold); }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  background: transparent; border-radius: var(--radius-sm); cursor: pointer;
  padding: 0; place-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 1.6px; background: var(--text); margin: 0 auto; transition: .22s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 9px 17px; font-size: .875rem; }

.btn-primary { background: var(--gold); color: #14100a; }
.btn-primary:hover { background: var(--gold-lift); color: #14100a; }

.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold); background: var(--gold-soft); }

/* --------------------------------------------------------------------- hero */

.hero { position: relative; padding: 92px 0 76px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; max-width: 900px; }
.hero-glow {
  position: absolute; z-index: 1; top: -280px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(213, 162, 74, .13), transparent 72%);
}
.hero-title { max-width: 21ch; }

.eyebrow {
  font-size: .775rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); font-weight: 620; margin-bottom: 18px;
}

.lede { font-size: 1.14rem; color: var(--text-dim); max-width: 62ch; line-height: 1.72; }

.cta-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

/* -------------------------------------------------------------- stats band */

.stats-band { border-block: 1px solid var(--line-soft); background: var(--surface); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 0; background: var(--line-soft);
}
.stat { background: var(--surface); padding: 30px 26px; }
.stat-value {
  font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: var(--gold);
  line-height: 1.1; margin: 0;
}
.stat-label {
  margin: 7px 0 0; font-size: .95rem; font-weight: 570; color: var(--text);
  display: flex; flex-direction: column;
}
.stat-label span { font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ----------------------------------------------------------------- sections */

.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 60ch; margin-bottom: 46px; }
.section-head p { color: var(--muted); font-size: 1.04rem; margin: 0; }

.page-head { padding: 74px 0 12px; }
.page-head .wrap { max-width: 860px; }
.status-page { padding: 110px 0 90px; text-align: center; }
.status-page .lede { margin-inline: auto; }
.status-page .cta-row { justify-content: center; }

.updated { font-size: .85rem; color: var(--muted); margin-top: 14px; }

/* -------------------------------------------------------------- card grid */

.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 24px;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }

.card-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 11px; background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold); font-size: 20px;
}

.card-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .89rem; font-weight: 600; margin-top: 16px;
}
.card-link:hover { text-decoration: none; gap: 11px; }
.card-link .icon { transition: transform .18s; }

/* ---------------------------------------------------------------- platforms */

.platform-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.platform {
  background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 30px;
}
.section-alt .platform { background: var(--ink); }

.platform-kind {
  font-size: .73rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 10px;
}
.platform h2, .platform h3 { margin-bottom: 6px; }
.platform-tagline { color: var(--gold); font-size: .97rem; margin-bottom: 14px; }
.platform-blurb { color: var(--muted); font-size: .95rem; }

.platform-wide {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px;
  align-items: start; margin-bottom: 22px; padding: 40px;
  background: var(--surface-2);
}
.platform-wide .platform-blurb { max-width: 60ch; }
.platform-side { border-left: 1px solid var(--line); padding-left: 30px; }

.tick-list { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 11px; }
.tick-list li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; color: var(--text-dim); }
.tick-list .icon { color: var(--gold); margin-top: .34em; font-size: .95em; }

/* --------------------------------------------------------------- tech band */

.tech-band { border-block: 1px solid var(--line-soft); background: var(--surface); padding: 46px 0; }
.tech-inner { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.tech-head h2 { font-size: 1.3rem; margin-bottom: .3em; }
.tech-head p { color: var(--muted); font-size: .9rem; margin: 0; }

.tech-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-list li {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .92rem; color: var(--text-dim); background: var(--ink);
}

/* ------------------------------------------------------------- credentials */

.cred-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cred { margin: 0; max-width: 560px; }
.cred img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow);
}
.cred figcaption { margin-top: 15px; display: flex; flex-direction: column; gap: 3px; }
.cred figcaption strong { font-size: 1rem; font-weight: 620; }
.cred figcaption span { font-size: .88rem; color: var(--muted); }
.cred-note { font-size: .84rem !important; }

/* ----------------------------------------------------------------- approach */

.approach-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); }
.approach { border-top: 2px solid var(--gold-line); padding-top: 22px; }
.approach-num {
  font-family: var(--mono); font-size: .8rem; color: var(--gold);
  letter-spacing: .08em; display: block; margin-bottom: 10px;
}
.approach p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ------------------------------------------------------------ service blocks */

.service-block {
  display: grid; grid-template-columns: 92px 1fr; gap: 34px;
  padding: 44px 0; border-top: 1px solid var(--line-soft);
}
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.service-num { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .1em; }
.service-body { max-width: 70ch; }
.service-summary { color: var(--text-dim); font-size: 1.03rem; }

/* -------------------------------------------------------------------- about */

.about-grid { display: grid; grid-template-columns: 340px 1fr; gap: 52px; align-items: start; }

.portrait { margin: 0; position: sticky; top: 100px; }
.portrait img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--surface-2); object-fit: cover; aspect-ratio: 1 / 1;
}
.portrait figcaption {
  margin-top: 14px; font-size: .87rem; color: var(--muted);
  padding-left: 14px; border-left: 2px solid var(--gold-line);
}
.about-body p { color: var(--text-dim); font-size: 1.04rem; }
/* No drop cap: the bio opens on "I", and a one-stroke letter set at 3rem
   reads as a stray gold bar rather than the start of the sentence. */
.about-body p:first-child {
  font-size: 1.14rem; color: var(--text);
  padding-left: 18px; border-left: 2px solid var(--gold-line);
}

/* --------------------------------------------------------------- fact grid */

.fact-grid {
  display: grid; gap: 1px; background: var(--line-soft); margin: 0;
  /* 6 facts land as two clean rows of three rather than 4 + 2 with a hole. */
  grid-template-columns: repeat(auto-fit, minmax(318px, 1fr));
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.fact { background: var(--surface-2); padding: 20px 24px; }
.section-alt .fact { background: var(--ink); }
.fact dt {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 6px;
}
.fact dd { margin: 0; font-size: .98rem; color: var(--text); font-weight: 520; }
.fact-grid-wide { margin-bottom: 34px; }

/* ------------------------------------------------------------------- prose */

.prose { max-width: 76ch; }
.prose h2 { font-size: 1.32rem; margin-top: 2.1em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-dim); font-size: 1rem; }
.prose ul { padding-left: 1.15em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--gold); }

/* ----------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
/* Panel headings are subordinate to the page h1 — keep them from competing. */
.contact-details h2, .contact-form-wrap h2 { font-size: 1.3rem; margin-bottom: 1.1em; }
.notice-ok h2 { font-size: 1.3rem; }

.contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; }
.clabel {
  font-size: .73rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.contact-note { color: var(--muted); font-size: .9rem; }

.contact-form-wrap {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
}

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 570; color: var(--text-dim); }
.field .opt { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--text);
  background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px; resize: vertical;
  transition: border-color .16s, background .16s;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold-line); background: #0d0f14; }
::placeholder { color: #5d6472; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-fine { font-size: .82rem; color: var(--muted); margin: 0; }

.notice { border-radius: var(--radius-sm); padding: 16px 18px; font-size: .95rem; }
.notice-err { background: rgba(220, 90, 80, .1); border: 1px solid rgba(220, 90, 80, .34); color: #f0b3ad; }
.notice-ok { background: var(--gold-soft); border: 1px solid var(--gold-line); padding: 30px; }
.notice-ok h2 { margin-bottom: .4em; }
.notice-ok p { color: var(--text-dim); }

/* ---------------------------------------------------------------- cta band */

.cta-band { border-top: 1px solid var(--line-soft); background: var(--surface); padding: 62px 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: .25em; }
.cta-inner p { color: var(--muted); margin: 0; max-width: 56ch; }

/* ------------------------------------------------------------------ footer */

.site-foot { background: var(--ink); border-top: 1px solid var(--line); padding: 62px 0 34px; }

.foot-grid {
  display: grid; gap: 40px; padding-bottom: 42px;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
}
.foot-about { max-width: 34ch; }
.brand-foot { margin-bottom: 16px; }
.foot-blurb { color: var(--muted); font-size: .91rem; margin: 0; }

.foot-col h3 {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 620; margin-bottom: 15px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col ul a { color: var(--text-dim); font-size: .93rem; }
.foot-col ul a:hover { color: var(--gold); text-decoration: none; }

.foot-legal { border-top: 1px solid var(--line-soft); padding-top: 26px; }
.foot-legal p { font-size: .855rem; color: var(--muted); margin: 0 0 7px; }
.foot-legal strong { color: var(--text-dim); font-weight: 600; }
.foot-copy { color: #6c7382; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .portrait { position: static; max-width: 330px; }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .platform-wide { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .platform-side { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; }
  .tech-inner { grid-template-columns: 1fr; gap: 22px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .foot-about { grid-column: 1 / -1; max-width: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .site-nav a.btn { margin-top: 14px; border-bottom: 0; justify-content: center; }

  .hero { padding: 62px 0 54px; }
  .section { padding: 58px 0; }
  .page-head { padding: 52px 0 8px; }
  .service-block { grid-template-columns: 1fr; gap: 18px; padding: 34px 0; }
  .service-aside { flex-direction: row; align-items: center; gap: 16px; }
  .contact-form-wrap { padding: 26px 22px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
