:root {
      --dark: #080808;
      --dark-soft: #121212;
      --light: #f4f1ea;
      --muted: #b9b4aa;
      --accent: #2f7dff;
      --card: #1a1a1a;
      --border: rgba(255, 255, 255, 0.14);
      --radius: 28px;
      --max: 1180px;
      --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
      --focus-ring: 0 0 0 3px rgba(47, 125, 255, 0.55);
    }

    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: var(--dark);
      color: var(--light);
      line-height: 1.6;
      text-rendering: optimizeLegibility;
    }
    img { display: block; max-width: 100%; height: auto; }
    figure { margin: 0; }
    a { color: inherit; text-decoration: none; }
    a:hover { color: var(--accent); }
    .container { width: min(var(--max), 92%); margin-inline: auto; }
    .skip-link {
      position: absolute; left: 1rem; top: -5rem; z-index: 999;
      padding: .8rem 1rem; border-radius: .8rem; background: var(--accent); color: #111; font-weight: 800;
    }
    .skip-link:focus { top: 1rem; }
    a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus-ring); }

    header {
      position: sticky; top: 0; z-index: 50;
      background: rgba(8, 8, 8, .82); backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--border);
    }
    nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
    .logo { font-size: 1.35rem; font-weight: 950; letter-spacing: -.05em; }
    .logo span { color: var(--accent); }
    .nav-links { display: flex; gap: clamp(1rem, 3vw, 2rem); list-style: none; margin: 0; padding: 0; color: var(--muted); }
    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      padding: .9rem 1.25rem; border-radius: 999px; border: 0;
      background: var(--accent); color: #111; font-weight: 850; cursor: pointer;
      transition: transform .2s ease, background .2s ease;
    }
    .btn:hover { transform: translateY(-2px); background: var(--light); color: #111; }

    .hero {
      min-height: 100vh;
      display: grid;
      align-items: center;
      padding: clamp(6rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
      background: radial-gradient(circle at 78% 30%, rgba(47,125,255,.22), transparent 28%), linear-gradient(180deg, #080808 0%, #111 100%);
    }
    .hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
    .eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 900; margin: 0 0 1rem; }
    h1, h2, h3 { line-height: .98; letter-spacing: -.055em; margin: 0; }
    h1 { font-size: clamp(3rem, 8vw, 7.4rem); margin-bottom: 1.4rem; }
    h2 { font-size: clamp(2.2rem, 5vw, 5rem); margin-bottom: 1rem; }
    h3 { font-size: 1.55rem; margin-bottom: .8rem; }
    .lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 680px; margin: 0 0 2rem; }

    .media-card, .project-card {
      overflow: hidden; border-radius: clamp(22px, 4vw, 42px); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow);
    }
    .media-card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
    .project-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
    figcaption { color: var(--muted); font-size: .92rem; padding: .9rem 1rem 1rem; }

    section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
    .light-section { background: var(--light); color: var(--dark); border-radius: 48px 48px 0 0; }
    .light-section .lead, .light-section figcaption { color: #555; }
    .stats, .services-grid, .project-grid { display: grid; gap: 1rem; }
    .stats { grid-template-columns: repeat(3, 1fr); }
    .stat, .service, form, .contact-info { border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
    .stat { background: #fff; min-height: 180px; }
    .stat strong { display: block; font-size: 3rem; letter-spacing: -.06em; }
    .stat span { color: #666; }
    .services-grid, .project-grid { grid-template-columns: repeat(3, 1fr); }
    .service { min-height: 300px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; }
    .service-number { color: var(--accent); font-weight: 900; margin-bottom: 1rem; }
    .service p, .step p { color: var(--muted); margin: 0; }

    .process { background: var(--dark-soft); }
    .steps { display: grid; gap: 1rem; margin-top: 2rem; }
    .step { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
    .step span { color: var(--accent); font-weight: 900; }

    .contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
    .contact-info, form { background: #fff; }
    .contact-info p { color: #555; }

    .contact-portrait {
      margin: 1.5rem 0;
      overflow: hidden;
      border-radius: 24px;
      border: 1px solid rgba(8, 8, 8, 0.12);
      background: #f7f7f7;
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    }
    .contact-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
    form { display: grid; gap: 1rem; }
    label { font-size: .85rem; font-weight: 750; color: #333; }
    input, textarea { width: 100%; padding: 1rem; border: 1px solid #ddd; border-radius: 16px; background: #f7f7f7; font: inherit; }
    textarea { min-height: 140px; resize: vertical; }
    .field { display: grid; gap: .4rem; }
    footer {
      padding: 2.5rem 0;
      color: var(--muted);
      border-top: 1px solid var(--border);
      background: var(--dark);
      text-align: center;
    }
    .footer-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: .85rem;
      text-align: center;
    }
    .footer-content p { margin: 0; }
    .footer-links {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: .85rem;
      flex-wrap: wrap;
      width: 100%;
    }
    .footer-links a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: .45rem .75rem;
      border-radius: 999px;
      color: var(--muted);
      font-size: .95rem;
      font-weight: 750;
      transition: color .2s ease, background .2s ease;
    }
    .footer-links a:hover { color: var(--light); background: rgba(255, 255, 255, .08); }

    .nav-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--light); cursor: pointer; }
    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; margin: auto; background: currentColor; transition: transform .2s ease; content: ""; }
    .nav-toggle span::before { transform: translateY(-7px); }
    .nav-toggle span::after { transform: translateY(5px); }
    .nav-toggle[aria-expanded="true"] span { background: transparent; }
    .nav-toggle[aria-expanded="true"] span::before { transform: translateY(0) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-2px) rotate(-45deg); }
    .form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
    .field-error, .form-status { margin: .25rem 0 0; font-size: .9rem; color: #555; }
    .form-status.is-error { color: #a30000; }
    button:disabled { cursor: wait; opacity: .65; }

    @media (max-width: 920px) {
      .hero-grid, .contact-grid, .services-grid, .stats, .project-grid { grid-template-columns: 1fr; }
      nav { flex-wrap: wrap; padding-block: .8rem; }
      .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; }
      header nav > .btn { display: none; }
      .nav-links { display: none; order: 3; width: 100%; padding: 1rem; justify-content: center; flex-direction: column; align-items: stretch; border: 1px solid var(--border); border-radius: 20px; background: var(--dark-soft); }
      .nav-links.is-open { display: flex; }
      .nav-links a { display: block; padding: .75rem; border-radius: 12px; }
      .media-card img { aspect-ratio: 16 / 10; }
      .step { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .nav-links { justify-content: flex-start; font-size: .95rem; }
      .btn { width: 100%; }
      .hero { min-height: auto; padding-top: 4rem; }
      .footer-content { justify-content: center; text-align: center; flex-direction: column; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition: none !important; }
    }

    html.samsung-internet { color-scheme: only dark; }
    html.samsung-internet, html.samsung-internet body, html.samsung-internet header { background-color: var(--dark) !important; }
    html.samsung-internet .light-section { background-color: var(--light) !important; color: var(--dark) !important; }
    html.samsung-internet .btn { background-color: var(--accent) !important; color: #111 !important; }
    html.samsung-internet input, html.samsung-internet textarea { background-color: #f7f7f7 !important; color: #111 !important; }
