/* SOMIKA website — layout and responsive rules (mobile first). Colours/type from the SOMIKA design system. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.s-root { font-family: "Medeo Sans", ui-sans-serif, system-ui, sans-serif; color: #241A14; background: #F3EDE4; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.s-root *, .s-root *::before, .s-root *::after { box-sizing: border-box; }
.s-root section, .s-root header, .s-root footer { scroll-margin-top: 72px; }
.s-wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 20px; }
.s-mono { font-family: "Medeo Mono", ui-monospace, Menlo, monospace; }
.s-label { font-size: 13px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; line-height: 1.2; }
:focus-visible { outline: 2px solid #241A14; outline-offset: 3px; }

/* Header */
.s-header { position: sticky; top: 0; z-index: 20; background: rgba(243, 237, 228, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #E4DCD0; }
.s-header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.s-logo { display: block; line-height: 0; }
.s-nav { display: none; align-items: center; gap: 28px; }
.s-nav a { color: #241A14; text-decoration: none; font-size: 15px; font-weight: 600; padding: 12px 0; }
.s-nav a:hover { color: #5A4A3F; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.s-header-cta { margin-left: auto; }
.s-header-row .s-burger { margin-left: -12px; }
.s-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid #241A14; border-radius: 999px; background: transparent; color: #241A14; cursor: pointer; padding: 0; }
.s-mnav { border-top: 1px solid #E4DCD0; padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 4px; background: #F3EDE4; }
.s-mnav a.s-mlink { color: #241A14; text-decoration: none; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; padding: 8px 0; }

/* Buttons */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.s-btn:hover { transform: translateY(-1px); }
.s-btn-primary { background: #E0603F; color: #241A14; border-color: #E0603F; }
.s-btn-primary:hover { background: #241A14; color: #F3EDE4; border-color: #241A14; }
.s-btn-outline { background: transparent; color: #241A14; border-color: #241A14; }
.s-btn-outline:hover { background: #241A14; color: #F3EDE4; }
.s-btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Hero */
.s-hero { padding: 40px 0 72px; overflow: hidden; }
.s-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.s-h1 { margin: 0; font-size: 56px; line-height: 0.95; font-weight: 800; letter-spacing: -0.03em; }
.s-sub { margin: 20px 0 0; font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; color: #5A4A3F; max-width: 30ch; }
.s-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.s-hero-visual { position: relative; }
.s-ph { position: relative; background: #F4C7B0; border-radius: 28px; overflow: hidden; }
.s-ph-tag { position: absolute; left: 18px; bottom: 16px; font-size: 12px; color: #5A4A3F; letter-spacing: 0.04em; }
.s-hero-ph { aspect-ratio: 4 / 4.4; width: 86%; margin-left: auto; }
.s-hero-spark { position: absolute; left: 0; top: 10%; width: 34%; height: auto; }
.s-hero-dot { position: absolute; right: -6px; bottom: -14px; width: 44px; height: auto; }

/* Sections */
.s-section { padding: 72px 0; }
.s-h2 { margin: 0; font-size: 34px; line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.s-h3 { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.s-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }

/* Who we work with */
.s-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.s-card { background: #FFFFFF; border: 1px solid #E4DCD0; border-radius: 28px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s ease, box-shadow .25s ease; }
.s-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(36, 26, 20, 0.08); }
.s-card-label { display: flex; align-items: center; gap: 10px; color: #5A4A3F; }
.s-card p { margin: 0; color: #5A4A3F; }
.s-card-link { margin-top: auto; padding-top: 10px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #241A14; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; text-decoration-color: #E0603F; }
.s-card-link span { transition: transform .2s ease; display: inline-block; }
.s-card-link:hover span { transform: translateX(4px); }

/* How we work */
.s-dark { background: #241A14; color: #F3EDE4; }
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.s-step { position: relative; padding: 0 0 36px 44px; }
.s-step::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 0; width: 1px; background: rgba(243, 237, 228, 0.22); }
.s-step:last-child { padding-bottom: 0; }
.s-step:last-child::before { display: none; }
.s-step-node { position: absolute; left: 0; top: 0; width: 20px; height: 20px; }
.s-step-num { display: block; font-size: 40px; line-height: 1; font-weight: 500; color: #E0603F; margin-bottom: 14px; }
.s-step p { margin: 8px 0 0; color: rgba(243, 237, 228, 0.78); }

/* Who we are */
.s-about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.s-about-text { margin: 20px 0 0; font-size: 26px; line-height: 1.22; font-weight: 800; letter-spacing: -0.025em; }
.s-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.s-duo .s-ph { aspect-ratio: 3 / 4; }
.s-duo figure { margin: 0; }
.s-duo figure:nth-child(2) { margin-top: 40px; }
.s-duo figcaption { margin-top: 10px; font-size: 13px; color: #5A4A3F; }

/* Contact */
.s-contact { background: #F4C7B0; }
.s-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.s-contact .s-h2 { font-size: 44px; line-height: 0.98; }
.s-form { background: #FFFFFF; border-radius: 28px; padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.s-field { display: flex; flex-direction: column; gap: 8px; }
.s-field > label, .s-fieldset legend { font-size: 14px; font-weight: 600; }
.s-input { width: 100%; min-height: 52px; padding: 14px 16px; border: 1.5px solid #8C7B6E; border-radius: 10px; background: #FFFFFF; font: inherit; color: #241A14; }
.s-input:focus { outline: 2px solid #241A14; outline-offset: 1px; border-color: #241A14; }
textarea.s-input { min-height: 120px; resize: vertical; }
.s-fieldset { border: 0; margin: 0; padding: 0; }
.s-fieldset legend { padding: 0; margin-bottom: 8px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chip { position: relative; }
.s-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.s-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid #8C7B6E; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; }
.s-chip input:checked + span { background: #241A14; border-color: #241A14; color: #F3EDE4; }
.s-chip input:focus-visible + span { outline: 2px solid #241A14; outline-offset: 2px; }
.s-form .s-btn { width: 100%; }
.s-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }
.s-links a { color: #241A14; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; padding: 6px 0; }

/* Footer */
.s-footer { background: #241A14; color: #F3EDE4; padding: 56px 0 32px; }
.s-footer-top { display: flex; flex-direction: column; gap: 28px; }
.s-footer p { margin: 0; }
.s-footer-meta { color: rgba(243, 237, 228, 0.72); font-size: 14px; }
.s-footer-links { display: flex; gap: 24px; }
.s-footer a { color: #F3EDE4; text-decoration: underline; text-underline-offset: 5px; font-size: 15px; padding: 8px 0; }
.s-footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(243, 237, 228, 0.18); font-size: 13px; color: rgba(243, 237, 228, 0.72); }

/* Legal pages */
.s-legal { padding: 56px 0 96px; }
.s-legal h1 { margin: 0 0 12px; font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.s-legal h2 { margin: 40px 0 10px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.s-legal p { margin: 0 0 12px; max-width: 68ch; color: #5A4A3F; }
.s-back { color: #241A14; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; padding: 12px 0; font-size: 15px; }

/* Fade-in on scroll (CSS only, falls back to visible) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .s-reveal { animation: s-fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes s-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Tablet */
@media (min-width: 720px) {
  .s-wrap { padding: 0 40px; }
  .s-h1 { font-size: 80px; }
  .s-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .s-step { padding: 52px 0 0 0; }
  .s-step::before { left: 28px; right: -32px; top: 9px; bottom: auto; width: auto; height: 1px; }
  .s-step:last-child::before { display: block; right: 0; }
  .s-form { padding: 32px; }
  .s-form .s-btn { width: auto; align-self: flex-start; }
}

/* Desktop */
@media (min-width: 1024px) {
  .s-wrap { padding: 0 48px; }
  .s-header-row { height: 76px; }
  .s-nav { display: flex; margin-left: auto; }
  .s-header-cta { margin-left: 8px; }
  .s-burger, .s-mnav { display: none; }
  .s-hero { padding: 56px 0 128px; }
  .s-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; }
  .s-h1 { font-size: 112px; }
  .s-sub { font-size: 22px; margin-top: 28px; }
  .s-actions { margin-top: 44px; }
  .s-section { padding: 128px 0; }
  .s-h2 { font-size: 56px; }
  .s-h3 { font-size: 26px; }
  .s-section-head { margin-bottom: 56px; }
  .s-cards { gap: 24px; }
  .s-card { padding: 36px 32px; }
  .s-card p { font-size: 17px; }
  .s-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-step-num { font-size: 44px; }
  .s-about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 96px; }
  .s-about-text { font-size: 40px; line-height: 1.12; }
  .s-contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .s-contact .s-h2 { font-size: 80px; }
  .s-form { padding: 40px; }
  .s-footer-top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
