@import url('../fonts/inter.css');

/* ============================================================
   RossMeta — design system
   Base: warm near-black tinted toward the amber accent.
   One accent, one accent-glow. No other hues.
   ============================================================ */

:root {
  /* Surface — neutrals carry ~1% of the accent hue (38deg) so the
     whole system reads warm rather than dead grey. */
  --bg:          #0A0908;
  --bg-raise:    #100E0B;
  --surface-1:   rgba(255, 246, 232, 0.028);
  --surface-2:   rgba(255, 246, 232, 0.055);
  --line:        rgba(255, 238, 214, 0.09);
  --line-strong: rgba(255, 238, 214, 0.16);

  /* Ink */
  --text:   #F6F4F0;
  --text-2: #A6A099;
  --text-3: #6E6862;

  /* The one accent */
  --accent:      #F5A524;
  --accent-hi:   #FFC46B;
  --accent-soft: rgba(245, 165, 36, 0.15);
  --accent-line: rgba(245, 165, 36, 0.32);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  /* Rhythm — 4px base */
  --gutter:  clamp(20px, 5vw, 40px);
  --section: clamp(88px, 11vw, 152px);
  --max:     1200px;

  /* Depth — inset top highlight is what makes a card feel physical */
  --lift: 0 1px 0 0 rgba(255,255,255,.06) inset,
          0 12px 32px -12px rgba(0,0,0,.7);
  --lift-hover: 0 1px 0 0 rgba(255,255,255,.09) inset,
                0 28px 64px -20px rgba(0,0,0,.85);

  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 450; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- ambient background: grid + glow + noise ---------- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

/* hairline grid, faded out toward the edges so it never looks like a table */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,238,214,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,238,214,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
}

/* two slow amber blooms — the only saturated light in the system */
.bg-glow { overflow: hidden; }
.bg-glow::before, .bg-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.bg-glow::before {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -14vw; left: 50%;
  background: radial-gradient(circle, rgba(245,165,36,.16), transparent 68%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
.bg-glow::after {
  width: 34vw; height: 34vw; min-width: 300px; min-height: 300px;
  top: 24vh; left: 4vw;
  background: radial-gradient(circle, rgba(245,165,36,.085), transparent 70%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(-55%, 0) scale(1); }
  to   { transform: translate(-42%, 7vh) scale(1.14); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vw, -6vh) scale(1.2); }
}

/* fine film grain so gradients never band */
.bg-noise {
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; z-index: 1; padding-block: var(--section); }
.section + .section { padding-top: 0; }
/* keep anchor targets clear of the sticky nav */
[id] { scroll-margin-top: 92px; }

/* ---------- typography ---------- */
.display {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.042em;
  font-weight: 420;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(1.95rem, 4.2vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -.034em;
  font-weight: 450;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.18;
  letter-spacing: -.024em;
  font-weight: 500;
}
.lead {
  font-size: clamp(1.06rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: -.012em;
  color: var(--text-2);
  max-width: 60ch;
}
.body   { color: var(--text-2); max-width: 62ch; }
.accent { color: var(--accent); }

/* small caps eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.nav.is-stuck {
  background: rgba(10, 9, 8, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { width: 19px; height: auto; }
.brand .logo { fill: var(--text); transition: fill .3s var(--ease); }
.brand:hover .logo { fill: var(--accent); }
.brand-name {
  font-size: .95rem; font-weight: 550;
  letter-spacing: -.01em;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: .9rem; color: var(--text-2);
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 9px;
  font-size: .92rem; font-weight: 500; letter-spacing: -.008em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s;
  will-change: transform;
}
.btn-primary {
  background: var(--accent); color: #17110A;
  box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 8px 24px -8px rgba(245,165,36,.6);
}
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,.34) inset, 0 14px 34px -10px rgba(245,165,36,.75);
}
.btn-ghost {
  background: var(--surface-1); color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(64px, 12vh, 130px); padding-bottom: var(--section); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px; margin-bottom: 30px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-1);
  font-size: .8rem; color: var(--text-2);
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(245,165,36,0); } }

.hero .display { max-width: 15ch; }
.hero .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* client strip */
.clients { margin-top: clamp(56px, 8vw, 92px); }
.clients-label {
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 20px;
}
.clients-row {
  display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center;
}
.clients-row li {
  font-size: .95rem; font-weight: 500; letter-spacing: -.012em;
  color: var(--text-3);
  transition: color .3s var(--ease);
}
.clients-row li:hover { color: var(--text-2); }

/* ---------- section heading ---------- */
.sec-head { max-width: 68ch; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head .h2 { margin-top: 18px; }
.sec-head .body { margin-top: 18px; }

/* ---------- browser frame ---------- */
.frame-wrap { display: block; }
.frame {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--bg-raise);
  box-shadow: var(--lift);
  overflow: hidden;
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), border-color .55s var(--ease);
  will-change: transform;
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding-inline: 13px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255,246,232,.05), rgba(255,246,232,.018));
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); }
.frame-url {
  flex: 1; margin-left: 6px; max-width: 300px;
  padding: 3px 11px; border-radius: 5px;
  background: rgba(0,0,0,.28);
  font-family: var(--mono); font-size: .68rem;
  color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-raise); }
.frame-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 1.1s var(--ease);
}

/* card hover: lift the frame, push the screenshot in slightly */
.case:hover .frame,
.mini:hover .frame {
  transform: translateY(-6px);
  box-shadow: var(--lift-hover);
  border-color: var(--accent-line);
}
.case:hover .frame-shot img,
.mini:hover .frame-shot img { transform: scale(1.035); }

/* ---------- featured case studies ---------- */
.cases { display: grid; gap: clamp(72px, 9vw, 132px); }
.case {
  display: grid; gap: clamp(30px, 5vw, 68px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  /* The screenshot always takes the wider column, whichever side it sits on. */
  .case { grid-template-columns: 0.88fr 1.12fr; }
  .case:nth-child(even) { grid-template-columns: 1.12fr 0.88fr; }
  .case:nth-child(even) .case-copy { order: 2; }
}
.case-copy .h2 { margin-top: 16px; }
.case-copy .body { margin-top: 18px; }

.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag {
  padding: 5px 11px; border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-1);
  font-size: .76rem; color: var(--text-2);
  letter-spacing: -.005em;
}
.case-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 28px;
  font-size: .93rem; font-weight: 500; color: var(--accent);
  transition: gap .3s var(--ease);
}
.case-link:hover { gap: 12px; }

/* value bullets */
.case-points { margin-top: 24px; display: grid; gap: 11px; }
.case-points li {
  position: relative; padding-left: 22px;
  color: var(--text-2); font-size: .96rem; line-height: 1.55;
}
.case-points li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- compact project grid ---------- */
.mini-grid {
  display: grid; gap: clamp(22px, 3vw, 34px);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
/* Flex column so the category label pins to the bottom of every card,
   keeping a straight baseline across a row of uneven descriptions. */
.mini { display: flex; flex-direction: column; }
.mini-meta { margin-top: 18px; display: flex; flex-direction: column; flex: 1; }
.mini-title {
  display: flex; align-items: baseline; gap: 9px;
  font-size: 1.06rem; font-weight: 500; letter-spacing: -.016em;
}
.mini-title .arw { color: var(--text-3); transition: transform .3s var(--ease), color .3s; }
.mini:hover .mini-title .arw { transform: translate(3px, -3px); color: var(--accent); }
.mini-desc { margin-top: 7px; font-size: .93rem; line-height: 1.55; color: var(--text-2); }
.mini-kind {
  margin-top: auto; padding-top: 14px;
  font-size: .73rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}

/* ---------- tools / downloads ---------- */
.tool-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.tool {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-1);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
  transition: transform .35s var(--ease), border-color .35s var(--ease),
              background .35s var(--ease), box-shadow .35s var(--ease);
}
.tool:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: var(--surface-2);
  box-shadow: var(--lift-hover);
}
.tool h4 { font-size: 1.02rem; font-weight: 500; letter-spacing: -.016em; }
.tool p { margin-top: 10px; font-size: .91rem; line-height: 1.6; color: var(--text-2); }
.tool-link {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 18px;
  font-size: .88rem; font-weight: 500; color: var(--accent);
  transition: gap .3s var(--ease);
}
.tool .invite { margin-top: auto; padding-top: 18px; }
.tool:hover .tool-link { gap: 12px; }
.tool-ver {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--mono); font-size: .7rem; color: var(--text-3);
  padding: 2px 8px; border: 1px solid var(--line); border-radius: 5px;
}

/* invite form */
.invite { display: flex; gap: 9px; margin-top: 18px; }
.invite input[type=text] {
  flex: 1; min-width: 0;
  padding: 10px 13px; border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,.3); color: var(--text);
  font-family: var(--mono); font-size: .9rem; letter-spacing: .04em;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.invite input[type=text]::placeholder { color: var(--text-3); letter-spacing: 0; }
.invite input[type=text]:focus {
  outline: none; border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.invite button {
  padding: 10px 17px; border-radius: 8px; border: 0;
  background: var(--surface-2); color: var(--text);
  font-family: var(--font); font-size: .88rem; font-weight: 500;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.invite button:hover { background: var(--accent); color: #17110A; }

/* ---------- contact ---------- */
.contact-card {
  position: relative;
  padding: clamp(44px, 7vw, 88px) clamp(28px, 5vw, 72px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 70% 130% at 50% 0%, rgba(245,165,36,.11), transparent 62%),
    var(--surface-1);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
  text-align: center;
  overflow: hidden;
}
.contact-card .lead { margin: 20px auto 0; }
.contact-card .hero-cta { justify-content: center; }
.mail {
  display: inline-block; margin-top: 30px;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  letter-spacing: -.028em; font-weight: 450;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.mail:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--line);
  padding-block: 40px;
  margin-top: var(--section);
}
.footer-in {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: .87rem; color: var(--text-3);
}
.footer a { transition: color .25s var(--ease); }
.footer a:hover { color: var(--text-2); }

/* ---------- scroll reveal ----------
   Scoped to .js so that without JavaScript nothing is ever hidden.
   The class is set by an inline script in <head>, before first paint. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
