/* ============ GetMax Portfolio — design system ============ */
:root {
  --paper: #f6f3ee;
  --paper-2: #efeae1;
  --ink: #17150f;
  --ink-soft: #2a2720;
  --muted: #6b655b;
  --muted-2: #918a7d;
  --line: rgba(23, 21, 15, 0.12);
  --line-soft: rgba(23, 21, 15, 0.07);
  --accent: #c25a34;
  --accent-deep: #a4451f;
  --on-dark: # efe9df;
  --on-dark: #efe9df;
  --on-dark-muted: #a8a196;
  --line-dark: rgba(239, 233, 223, 0.14);

  --maxw: 1180px;
  --gut: clamp(1.25rem, 5vw, 4rem);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --f-display: "Clash Display", "Cabinet Grotesk", Georgia, serif;
  --f-body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.tabular { font-variant-numeric: tabular-nums; }

/* ============ reveal ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.brand small { font-family: var(--f-body); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 100px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 860px) { .nav-links { display: flex; } }

/* ============ hero ============ */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 78% 8%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%),
    radial-gradient(50% 60% at 12% 100%, color-mix(in srgb, #3a6f6a 34%, transparent), transparent 72%);
  opacity: 0.85;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow { color: color-mix(in srgb, var(--accent) 80%, white); }
.hero h1 {
  font-size: clamp(2.7rem, 7.5vw, 5.6rem);
  margin: 1.2rem 0 0;
  max-width: 16ch;
  color: #fff;
}
.hero h1 em { font-style: normal; color: color-mix(in srgb, var(--accent) 78%, white); }
.hero-sub {
  margin-top: 1.6rem; max-width: 52ch;
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  color: var(--on-dark-muted); line-height: 1.6;
}
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.98rem;
  padding: 0.9rem 1.5rem; border-radius: 100px;
  min-height: 48px; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-dark); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); transform: translateY(-2px); }
.hero-stats {
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem;
  border-top: 1px solid var(--line-dark); padding-top: 2rem;
}
.hero-stats .stat b { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: #fff; display: block; letter-spacing: -0.02em; }
.hero-stats .stat span { font-size: 0.85rem; color: var(--on-dark-muted); }
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }

/* ============ marquee ============ */
.marquee { background: var(--ink-soft); color: var(--on-dark-muted); border-block: 1px solid var(--line-dark); overflow: hidden; }
.marquee-track { display: flex; gap: 3.5rem; white-space: nowrap; padding: 0.9rem 0; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 0.02em; opacity: 0.72; }
.marquee-track span::after { content: "•"; margin-left: 3.5rem; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============ section shell ============ */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.3rem); margin-top: 0.9rem; }
.section-head p { margin-top: 1.1rem; color: var(--muted); font-size: 1.08rem; max-width: 52ch; }

/* ============ services ============ */
.services { border-top: 1px solid var(--line); }
.svc { display: grid; gap: 0.4rem 2rem; grid-template-columns: 1fr; padding: 2rem 0; border-bottom: 1px solid var(--line-soft); align-items: start; transition: padding-left 0.35s var(--ease); }
.svc:hover { padding-left: 0.6rem; }
.svc .svc-no { font-family: var(--f-display); font-size: 0.95rem; color: var(--accent); }
.svc h3 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
.svc p { color: var(--muted); max-width: 46ch; }
.svc .svc-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.svc .svc-tags i { font-style: normal; font-size: 0.78rem; color: var(--muted-2); border: 1px solid var(--line); border-radius: 100px; padding: 0.22rem 0.7rem; }
@media (min-width: 800px) { .svc { grid-template-columns: 3rem 1.2fr 1.3fr; align-items: baseline; } }

/* ============ work grid ============ */
.work { background: var(--paper-2); }
.grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; min-height: 320px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(23, 21, 15, 0.35); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card-visual {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 1.2rem;
  color: #fff;
}
.card-visual .vlabel { font-family: var(--f-display); font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 0.98; letter-spacing: -0.02em; position: relative; z-index: 2; }
.card-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, transparent 30%, rgba(0,0,0,0.42)); z-index: 1; }
.card-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: var(--muted-2); letter-spacing: 0.06em; text-transform: uppercase; }
.card-meta .yr { margin-left: auto; }
.card h3 { font-size: 1.28rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.card-link { margin-top: auto; padding-top: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--ink); display: inline-flex; align-items: center; gap: 0.4rem; }
.card-link .arw { transition: transform 0.3s var(--ease); color: var(--accent); }
.card:hover .card-link .arw { transform: translateX(5px); }
.card-link.muted { color: var(--muted-2); }

/* gradient visuals for cards */
.v1 { background: linear-gradient(135deg, #2a4a63, #4d7a8c); }
.v2 { background: linear-gradient(135deg, #b45a2e, #d98a4e); }
.v3 { background: linear-gradient(135deg, #1f4d45, #3f857a); }
.v4 { background: linear-gradient(135deg, #3a3550, #6a5f86); }
.v5 { background: linear-gradient(135deg, #6a3324, #a8543a); }
.v6 { background: linear-gradient(135deg, #23303a, #46606f); }
.v7 { background: linear-gradient(135deg, #4a4030, #8a7550); }
.card-visual .vpat { position: absolute; inset: 0; z-index: 0; opacity: 0.5; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.35) 1px, transparent 0); background-size: 22px 22px; }

/* nda strip */
.nda { margin-top: 1.6rem; border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: flex; gap: 1rem; align-items: center; color: var(--muted); font-size: 0.98rem; }
.nda b { color: var(--ink); font-family: var(--f-display); font-weight: 600; }

/* ============ product suite ============ */
.suite { border-top: 1px solid var(--line); }
.suite-grid { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.suite-item { padding: 1.5rem; border-bottom: 1px solid var(--line-soft); display: flex; gap: 1rem; align-items: baseline; transition: background 0.25s; }
.suite-item:hover { background: var(--paper-2); }
.suite-item:last-child { border-bottom: none; }
.suite-item .sname { font-family: var(--f-display); font-size: 1.15rem; min-width: 8rem; }
.suite-item .sname b { color: var(--accent); }
.suite-item p { color: var(--muted); font-size: 0.96rem; }
@media (min-width: 720px) { .suite-grid { grid-template-columns: 1fr 1fr; } .suite-item:nth-last-child(2):nth-child(odd) { border-bottom: none; } }

/* ============ how we work ============ */
.how { background: var(--ink); color: var(--on-dark); }
.how .section-head h2 { color: #fff; }
.how .section-head p { color: var(--on-dark-muted); }
.steps { display: grid; grid-template-columns: 1fr; gap: 1.4rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { border-top: 1px solid var(--line-dark); padding-top: 1.3rem; }
.step .snum { font-family: var(--f-display); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.step h3 { font-size: 1.2rem; margin: 0.7rem 0 0.5rem; color: #fff; }
.step p { color: var(--on-dark-muted); font-size: 0.95rem; }

/* ============ contact ============ */
.contact .wrap { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .contact .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.contact p { color: var(--muted); margin-top: 1rem; max-width: 40ch; }
.contact-actions { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-row {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem;
  border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.contact-row:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(23,21,15,0.4); }
.contact-row .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--paper-2); flex-shrink: 0; }
.contact-row .ic svg { width: 20px; height: 20px; stroke: var(--accent); }
.contact-row .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }
.contact-row .val { font-family: var(--f-display); font-size: 1.08rem; word-break: break-word; }
.contact-row .arw { margin-left: auto; color: var(--muted-2); transition: transform 0.3s var(--ease), color 0.3s; }
.contact-row:hover .arw { transform: translateX(5px); color: var(--accent); }

/* ============ footer ============ */
.foot { border-top: 1px solid var(--line); padding: 2.5rem 0; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.88rem; }
.foot .brand { font-size: 1rem; color: var(--ink); }

/* touch inputs safe area */
@supports (padding: max(0px)) {
  .wrap { padding-left: max(var(--gut), env(safe-area-inset-left)); padding-right: max(var(--gut), env(safe-area-inset-right)); }
}
