/* Rosso Dijital — rossodijital.com */
:root {
  --red: #eb233d;
  --red-deep: #b3122a;
  --ink: #111216;
  --ink-2: #0b0b0e;
  --grey: #555861;
  --paper: #f7f7f9;
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(17, 18, 22, 0.1);
  --radius: 28px;
  --font: "Avenir Next", "Avenir", "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--ink-2);
  color: #fff;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 11, 14, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.solid-header .site-header { background: rgba(11, 11, 14, 0.92); border-bottom-color: var(--line-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: baseline; gap: 8px; }
.logo b { font-size: 29px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.logo span { font-size: 11px; font-weight: 500; letter-spacing: .08em; opacity: .85; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"] { color: var(--red); }
.nav-links .nav-cta { color: #fff; background: var(--red); padding: 11px 20px; border-radius: 999px; }
.nav-links .nav-cta:hover { background: var(--red-deep); color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background .25s; margin: auto; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.4vw, 84px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: clamp(19px, 2vw, 24px); font-weight: 500; line-height: 1.4; }
.muted { color: rgba(255,255,255,.64); }

/* ---------- Sections ---------- */
section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.dark { background: var(--ink-2); color: #fff; }
.dark::before, .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 100% 100%, rgba(150, 12, 40, .55), transparent 70%),
    radial-gradient(45% 45% at 0% 0%, rgba(235, 35, 61, .07), transparent 70%);
}
.light { background: var(--paper); color: var(--ink); }
.light::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 100% 100%, rgba(235, 35, 61, .12), transparent 70%);
}
.light .muted { color: var(--grey); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); position: relative; }
.section-head .eyebrow { display: block; margin-bottom: 20px; }
.section-head p { margin-top: 20px; }
section > .wrap { position: relative; z-index: 1; }

/* sphere */
.sphere {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 34% 28%, #ff7088 0%, #eb233d 34%, #9c0d27 78%, #5e0818 100%);
  box-shadow: 0 0 120px rgba(235, 35, 61, .35);
  animation: float 9s ease-in-out infinite;
}
.light .sphere { opacity: .92; }
@keyframes float { 50% { transform: translateY(-18px); } }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
}
.light .glass {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.55));
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 24px 60px -28px rgba(17,18,22,.25), 0 0 0 1px var(--line-light);
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 140px 0 90px; background: var(--ink-2); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 28px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { max-width: 560px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 15px; font-weight: 600; padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.light .btn-ghost { border-color: rgba(17,18,22,.25); color: var(--ink); }
.light .btn-ghost:hover { border-color: var(--ink); }

.hero-card { position: relative; padding: 44px 40px 36px; min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; width: 360px; height: 360px; right: -80px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(235,35,61,.55), transparent 68%); filter: blur(20px); }
.hero-card > * { position: relative; }
.hero-card .tag { font-size: 12px; font-weight: 700; letter-spacing: .32em; }
.hero-card h2 { font-size: clamp(32px, 3.6vw, 46px); margin: 20px 0 32px; }
.hero-card ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; font-weight: 700; letter-spacing: .16em; }
.hero .sphere { width: 260px; height: 260px; right: -70px; bottom: -90px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-grid p { margin-bottom: 22px; font-size: 19px; }
.what { padding: 32px 36px; margin-top: 12px; }
.what .eyebrow { font-size: 11px; display: block; margin-bottom: 12px; }
.what p { margin: 0; font-weight: 500; color: var(--ink); }
.pillars { display: grid; gap: 16px; }
.pillar { padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.pillar small { font-size: 12px; letter-spacing: .2em; color: var(--red); font-weight: 700; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { padding: 28px 28px 30px; min-height: 250px; display: flex; flex-direction: column; transition: transform .3s, border-color .3s, background .3s; }
a.svc:hover { transform: translateY(-6px); border-color: rgba(235,35,61,.7); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 36px; }
.svc svg { width: 44px; height: 44px; stroke: var(--red); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc .num { font-size: 13px; font-weight: 600; opacity: .55; }
.svc h3 { font-size: 22px; margin-bottom: 8px; }
.svc p { font-size: 15px; color: rgba(255,255,255,.62); }

/* ---------- Detail blocks ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.detail { padding: 36px 34px; }
.detail .eyebrow { font-size: 11px; }
.detail h3 { font-size: 28px; margin: 14px 0 14px; }
.detail > p { font-size: 16px; color: rgba(255,255,255,.7); margin-bottom: 26px; }
.checks { border-top: 1px solid var(--line-dark); }
.checks li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 9px; }
.note { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.5); max-width: 760px; }
.note a { text-decoration: underline; text-underline-offset: 3px; }
.note a:hover { color: #fff; }

.story-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.story-main { padding: 44px; grid-row: span 2; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.story-main::before { content: ""; position: absolute; width: 380px; height: 380px; left: -100px; top: -90px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(235,35,61,.8), transparent 66%); filter: blur(30px); }
.story-main > * { position: relative; }
.story-main h3 { font-size: clamp(26px, 3vw, 38px); margin: 18px 0 auto; padding-bottom: 40px; line-height: 1.2; }
.story-main .pair { display: flex; gap: 48px; padding: 24px 0 14px; border-top: 1px solid var(--line-dark); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.story-main p { color: rgba(255,255,255,.7); font-size: 16px; }
.story-side { padding: 34px; }
.story-side svg { width: 38px; height: 38px; stroke: var(--red); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.story-side h3 { font-size: 26px; margin-bottom: 12px; }
.story-side p { color: rgba(255,255,255,.7); font-size: 16px; }
.pill { display: inline-block; margin-top: 22px; background: #fff; color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 9px 16px; border-radius: 999px; }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work { padding: 28px 30px; display: flex; flex-direction: column; gap: 22px; min-height: 140px; }
.work h3 { font-size: 20px; letter-spacing: 0; font-weight: 600; text-transform: none; }
.work .links { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: auto; }
.work .links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #ff9aa9; transition: color .2s, gap .2s; }
.work .links a:hover { color: #fff; gap: 12px; }
.work .links a small { font-size: 11px; opacity: .6; letter-spacing: .06em; }
.work .links svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.work-note { display: flex; align-items: center; padding: 28px 30px; font-size: 17px; }
.work-teaser { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .06em; border: 1px solid var(--line-dark); background: rgba(255,255,255,.05); }

/* ---------- Mission ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv { padding: 44px 44px 52px; min-height: 380px; }
.mv .badge { display: inline-block; background: var(--ink); color: var(--red); font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 11px 20px; border-radius: 999px; margin-bottom: 30px; }
.mv h3 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 20px; }
.mv p { font-size: 19px; line-height: 1.6; }
.approach { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 24px; align-items: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-light); }
.approach .eyebrow { font-size: 12px; }
.approach span:not(.eyebrow) { font-size: 20px; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta { text-align: center; overflow: hidden; }
.cta h2 { max-width: 820px; margin: 18px auto 18px; }
.cta p { max-width: 560px; margin: 0 auto; }
.cta .btns { justify-content: center; }
.cta .sphere { width: 200px; height: 200px; left: -60px; bottom: -80px; }

/* ---------- Page hero ---------- */
.page-hero { padding: 170px 0 80px; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 72px); margin-top: 22px; max-width: 900px; }
.page-hero .lead { margin-top: 22px; max-width: 640px; }
.page-hero.light { padding-bottom: 60px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.c-list { display: grid; gap: 16px; }
.c-item { padding: 26px 30px; display: block; transition: border-color .3s, transform .3s; }
a.c-item:hover { border-color: rgba(235,35,61,.7); transform: translateY(-3px); }
.c-item .eyebrow { font-size: 11px; display: block; margin-bottom: 8px; }
.c-item strong { font-size: 21px; font-weight: 600; }
form.glass { padding: 38px; display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
input, textarea { font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; font-weight: 500; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 14px; padding: 14px 16px; width: 100%; transition: border-color .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--red); }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------- Footer ---------- */
.site-footer { background: #08080a; border-top: 1px solid var(--line-dark); padding: 56px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.foot-grid p { color: rgba(255,255,255,.55); font-size: 15px; margin-top: 16px; max-width: 320px; }
.foot-grid h4 { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.foot-grid li { margin-bottom: 8px; font-size: 15px; }
.foot-grid li a { color: rgba(255,255,255,.75); transition: color .2s; }
.foot-grid li a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sphere { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .about-grid, .contact-grid, .story-grid { grid-template-columns: 1fr; }
  .story-main { grid-row: auto; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #0b0b0e; padding: 12px 24px 28px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .menu-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-size: 13px; }
  .nav-links .nav-cta { margin-top: 18px; text-align: center; border: 0; }
  .site-header { background: rgba(11,11,14,.72); backdrop-filter: blur(16px); }
  .mv-grid { grid-template-columns: 1fr; }
  .approach { grid-template-columns: 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .svc-grid, .detail-grid, .work-grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
  .hero { padding-top: 120px; }
  .hero-card, .mv, .story-main, .detail { padding: 30px 26px; }
  .story-main .pair { gap: 24px; }
  .hero .sphere { width: 180px; height: 180px; right: -60px; bottom: -70px; }
  .foot-grid { grid-template-columns: 1fr; }
  form.glass { padding: 26px 22px; }
}
