/* ============================================================
   SYNVUNG IT SERVICES — synvung.com
   Vanilla CSS. Aesthetic: restrained enterprise.
   Palette: warm charcoal + warm paper + ember accent (sparing).
   Type: Mulish (display + body).
   Accent appears ONLY on: the logomark, one hairline dash per
   section, and small interactive/CTA touches. Never on body copy.
   ============================================================ */

:root {
  /* Colour */
  --ink:        #141110;   /* warm charcoal — dark sections */
  --ink-2:      #1d1814;   /* lifted charcoal — cards on dark */
  --ink-3:      #2a221d;   /* hairline lifts */
  --paper:      #f5f2ee;   /* warm off-white — light sections */
  --paper-2:    #ece6dd;   /* deeper paper */
  --accent:     #e0683c;   /* ember */
  --accent-soft:#e8855f;
  --on-accent:  #1c0d06;   /* text on ember */
  --line:       rgba(20, 17, 16, 0.12);
  --line-light: rgba(245, 242, 238, 0.12);
  --text:       #1f1813;
  --text-soft:  #6b6058;
  --text-invert:#f4efe9;
  --text-invert-soft: #a39a92;

  /* Type — Mulish for everything */
  --display: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }
.ink-bg { background: var(--ink); color: var(--text-invert); }
.paper-2-bg { background: var(--paper-2); }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {            /* the one hairline accent per section */
  content: "";
  width: 2.2rem; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.ink-bg .eyebrow, .hero .eyebrow { color: var(--text-invert-soft); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.022em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 700; letter-spacing: -0.018em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-soft); max-width: 60ch; }
.ink-bg .lead { color: var(--text-invert-soft); }
em { font-style: normal; font-weight: 600; color: inherit; }   /* subtle emphasis, no colour */

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(20, 17, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line-light);
}
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text-invert); }
.brand .mark { width: 34px; height: 24px; flex: none; }
.brand .mark path, .brand .mark line, .brand .mark rect { stroke: var(--accent); }
.brand .name {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.brand .name b { color: inherit; font-weight: 700; }   /* wordmark stays one colour */

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  color: var(--text-invert-soft);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text-invert); }
.nav-links a:hover::after { width: 100%; }

.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-light);
  border-radius: 999px; overflow: hidden;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
}
.lang button {
  background: none; border: 0; cursor: pointer;
  color: var(--text-invert-soft);
  padding: 0.4rem 0.78rem; font-family: var(--body); font-weight: 700;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang button.active { background: var(--accent); color: var(--on-accent); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-invert); margin: 4px 0; transition: .3s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background:
    radial-gradient(110% 80% at 85% -10%, rgba(224,104,60,0.10), transparent 55%),
    radial-gradient(90% 80% at 4% 112%, rgba(42,34,29,0.7), transparent 60%),
    var(--ink);
  color: var(--text-invert);
  overflow: hidden;
}
.hero::after { /* faint grain only — no colour */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  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='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero-inner { position: relative; z-index: 2; padding-block: 9rem 5rem; }
.hero .eyebrow { margin-bottom: 1.8rem; }
.hero h1 {
  font-size: clamp(2.7rem, 7.6vw, 6.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
  max-width: 17ch;
}
.hero .lead { max-width: 54ch; font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.hero-meta {
  margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 2.2rem 3rem;
  padding-top: 2rem; border-top: 1px solid var(--line-light);
}
.hero-meta .item { max-width: 22ch; }
.hero-meta .k { color: var(--text-invert); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }
.hero-meta .v { color: var(--text-invert-soft); font-size: 0.95rem; margin-top: 0.4rem; }

.scroll-cue {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-invert-soft); font-size: 0.7rem;
  letter-spacing: 0.25em; text-transform: uppercase; display: flex;
  flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-cue .bar { width: 2px; height: 38px; background: var(--accent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(0.3); opacity:.4 } 50% { transform: scaleY(1); opacity:1 } }

/* ============================================================
   POSITIONING STATEMENT
   ============================================================ */
.statement .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.statement .big {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.32; letter-spacing: -0.018em; font-weight: 700; color: var(--text);
}
.statement .big b { color: var(--accent); font-weight: 700; }   /* the single accent highlight */
.statement .label { position: sticky; top: 7rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.head-row .lead { margin-top: 1.2rem; }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.svc {
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  border-radius: 4px;
  padding: clamp(1.8rem, 3.4vw, 3rem);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.svc::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.55); border-color: var(--ink-3); }
.svc:hover::before { transform: scaleX(1); }
.svc .num { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--text-invert-soft); letter-spacing: 0.06em; }
.svc h3 { margin: 0.9rem 0 0.9rem; color: var(--text-invert); }
.svc .desc { color: var(--text-invert-soft); margin-bottom: 1.8rem; }
.svc ul { display: grid; gap: 0.05rem; border-top: 1px solid var(--line-light); }
.svc li {
  padding: 0.85rem 0; font-size: 0.92rem; color: var(--text-invert);
  border-bottom: 1px solid var(--line-light);
  display: flex; align-items: baseline; gap: 0.8rem;
}
.svc li::before { content: ""; width: 5px; height: 5px; flex: none; background: var(--text-invert-soft); border-radius: 50%; transform: translateY(-2px); }

/* ============================================================
   APPROACH
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.pillar { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.6rem); transition: background .4s var(--ease); }
.pillar:hover { background: var(--paper-2); }
.pillar .num { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--paper-2); line-height: 1; transition: color .4s var(--ease); }
.pillar:hover .num { color: var(--text-soft); }
.pillar h3 { margin: 0.4rem 0 0.7rem; color: var(--text); }
.pillar p { color: var(--text-soft); font-size: 0.96rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about .wrap { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,6vw,5rem); align-items: center; }
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p + p { margin-top: 1.1rem; }
.about-panel {
  border: 1px solid var(--line-light); border-radius: 4px;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
}
.about-panel .row { padding: 1.15rem 0; border-bottom: 1px solid var(--line-light); }
.about-panel .row:last-child { border-bottom: 0; padding-bottom: 0; }
.about-panel .row:first-child { padding-top: 0; }
.about-panel .k { color: var(--text-invert-soft); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.about-panel .v { color: var(--text-invert); margin-top: 0.4rem; font-size: 1rem; }

/* ============================================================
   FOOTER / LOCATION
   ============================================================ */
.footer { background: var(--ink); color: var(--text-invert); padding-block: clamp(3.5rem, 8vw, 6rem) 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
.footer .brand { color: var(--text-invert); margin-bottom: 1rem; }
.footer-tagline { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--text-invert); letter-spacing: -0.01em; margin-bottom: 0.9rem; }
.footer-tagline b { color: var(--accent); font-weight: 700; }
.footer .blurb { color: var(--text-invert-soft); max-width: 36ch; font-size: 0.95rem; }
.footer h4 { font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-invert-soft); font-weight: 700; margin-bottom: 1.1rem; }
.footer address { font-style: normal; color: var(--text-invert-soft); font-size: 0.95rem; line-height: 1.75; }
.footer .legal-line { color: var(--text-invert); font-weight: 600; margin-bottom: 0.4rem; }
.footer .tax { margin-top: 1rem; }
.footer .tax .k { color: var(--text-invert-soft); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.footer .tax .v { color: var(--text-invert); font-size: 1rem; letter-spacing: 0.03em; }
.footer-bottom { padding-top: 1.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--text-invert-soft); font-size: 0.82rem; }

/* ============================================================
   REVEAL ANIMATION (progressive enhancement)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

.js .hero .anim { opacity: 0; transform: translateY(30px); animation: rise 1s var(--ease) forwards; }
.js .hero .anim:nth-child(1) { animation-delay: .15s; }
.js .hero .anim:nth-child(2) { animation-delay: .3s; }
.js .hero .anim:nth-child(3) { animation-delay: .45s; }
.js .hero .anim:nth-child(4) { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero .anim { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .statement .wrap, .about .wrap { grid-template-columns: 1fr; }
  .statement .label { position: static; }
  .services-grid, .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 1.4rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); padding: 2rem var(--pad);
    border-bottom: 1px solid var(--line-light);
  }
  .nav.open .nav-links a { font-size: 1.05rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
