/* Jndly Studio — site styles */
:root {
  --bg: #f5f1ea;
  --surface: #fbf8f3;
  --ink: #1b1a17;
  --ink-2: #3a3833;
  --muted: #6b665d;
  --line: #e2dcd0;
  --accent: #d4532b;
  --accent-ink: #b8431f;
  --accent-soft: #f3dccf;
  --green: #2f4a3a;
  --mustard: #e3aa46;
  --blue: #b9c7d6;
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --gutter: 20px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.12; }
h1 { font-size: clamp(38px, 6.2vw, 76px); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand span { color: var(--muted); font-weight: 450; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 6px; list-style: none; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-size: 16px; font-weight: 550; text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: var(--surface); transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Common */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--muted); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--line { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { max-width: 30em; color: var(--muted); margin: 0; }
.link-arrow { font-weight: 550; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-bottom: 36px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 600; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 66px); max-width: 15em; margin-bottom: 24px; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.service-card { display: flex; flex-direction: column; gap: 14px; min-height: 250px; }
.service-card h3 { margin-top: 6px; }
.service-card p { color: var(--muted); font-size: 16px; }
.service-card .tags { margin-top: auto; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; }
.card--dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.card--dark p { color: #c9c3b8; }
.card--dark .btn { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.card--dark .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--bg); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: step; }
.steps li { padding: 28px 28px 8px 0; counter-increment: step; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--mono); font-size: 13px; color: var(--accent-ink); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Work */
.work-card { display: flex; flex-direction: column; text-decoration: none; }
.work-card:hover { color: var(--ink); }
.work-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 8 / 5; background: var(--surface); }
.work-art svg { width: 100%; height: 100%; transition: transform .4s ease; }
.work-card:hover .work-art svg { transform: scale(1.025); }
.work-card h3 { margin: 20px 0 8px; }
.work-card p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }

.case { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case:nth-of-type(even) .work-art { order: 2; }
.case h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 18px; }
.case h3 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; font-weight: 600; }
.case p { color: var(--ink-2); }
.case ul.list { margin-top: 6px; }
.case .tags { margin-top: 24px; }

/* Lists */
ul.list { list-style: none; display: grid; gap: 10px; }
ul.list li { position: relative; padding-left: 26px; }
ul.list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 2px; background: var(--accent); }

/* Service detail */
.service-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); padding: clamp(44px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.service-row:first-of-type { border-top: 1px solid var(--ink); }
.service-row .num { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); display: block; margin-bottom: 14px; }
.service-row h2 { font-size: clamp(28px, 3.2vw, 38px); }
.service-row .body p { color: var(--ink-2); }
.service-row .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.service-row h4 { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; list-style: none; }
.principles li { padding: 28px 0; border-top: 1px solid var(--line); }
.principles h3 { margin-bottom: 8px; }
.principles p { color: var(--muted); }

/* Team */
.role { display: flex; flex-direction: column; gap: 16px; }
.role .shape { height: 120px; border-radius: 12px; overflow: hidden; }
.role .shape svg { width: 100%; height: 100%; }
.role p { color: var(--muted); font-size: 16px; }

/* Statement band */
.band { background: var(--ink); color: var(--surface); border-radius: calc(var(--radius) + 6px); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.band h2 { color: var(--surface); }
.band p { color: #c9c3b8; margin: 0; }
.band .btn { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.band .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Quote / statement */
.statement { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.22; letter-spacing: -0.025em; font-weight: 500; max-width: 24em; }
.statement em { font-style: normal; color: var(--accent); }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 300; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding: 0 40px 22px 0; margin: 0; max-width: 46em; }

/* Contact */
.contact-mail { display: inline-block; font-size: clamp(30px, 6vw, 72px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; text-decoration: none; border-bottom: 3px solid var(--accent); padding-bottom: 6px; margin: 8px 0 32px; word-break: break-word; }
.contact-mail:hover { color: var(--accent-ink); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.kv { display: grid; gap: 18px; }
.kv div { display: grid; gap: 2px; }
.kv dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
ol.checklist { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
ol.checklist li::marker { color: var(--accent-ink); font-family: var(--mono); font-size: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: clamp(64px, 9vw, 120px); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-top p { color: var(--muted); max-width: 24em; margin-top: 14px; }
.footer-top h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* 404 */
.notfound { min-height: 56vh; display: grid; align-content: center; padding: 80px 0 0; }
.notfound .wrap { width: 100%; }
.notfound .code { font-family: var(--mono); color: var(--accent-ink); font-size: 14px; margin-bottom: 16px; }
.notfound h1 { margin-bottom: 20px; }
.notfound .lead { margin-bottom: 32px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 16px; padding-bottom: 12px; }
  .nav { gap: 2px; margin-left: -12px; flex-wrap: wrap; }
  .nav a { padding: 6px 12px; font-size: 15px; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 16px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .case, .service-row { grid-template-columns: 1fr; }
  .case:nth-of-type(even) .work-art { order: 0; }
  .service-row .cols { grid-template-columns: 1fr; gap: 20px; }
  .principles { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .service-card { min-height: 0; }
  .btn { padding: 13px 20px; }
  .contact-mail { border-bottom-width: 2px; }
}
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 6px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
