/* iraady.com v2 — Iraady family foundation, international-first.
   Schibsted Grotesk + JetBrains Mono, paper / graphite, logo strands as accents. */
:root {
  --navy: #2E3192; --sky: #29ABE2; --yellow: #F2C811; --green: #1E9E4A;
  --bg: #F5F4EF; --bg-alt: #ECEAE3; --card: #FFFFFF; --ink: #141518; --ink-2: #474A52; --ink-3: #5F636B;
  --line: #DEDBD2; --line-2: #CFCBC0; --btn: #141518; --btn-ink: #FFFFFF; --focus: #2E3192;
  --shadow: 0 1px 2px rgba(20, 21, 24, .05), 0 12px 32px -12px rgba(20, 21, 24, .18);
  --r: 14px; --r-lg: 22px;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0D0E11; --bg-alt: #121419; --card: #171920; --ink: #EDECE7; --ink-2: #B9BAC0; --ink-3: #9A9CA4;
  --line: #262932; --line-2: #343844; --btn: #EDECE7; --btn-ink: #0D0E11; --focus: #29ABE2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 12px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 15px 22px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.arr { flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.link:hover { border-color: var(--ink); }
.pill { display: inline-block; font: 500 12px/1 var(--mono); padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pill-dark { background: var(--btn); color: var(--btn-ink); border-color: transparent; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.scrolled { border-color: var(--line); }
.hdr-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.mark path { fill: none; stroke-width: 4.2; stroke-linecap: round; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* hero */
.hero { padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 4.9vw, 66px); font-weight: 800; letter-spacing: -.04em; margin: 18px 0 22px; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 20px 0 0; margin: 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.facts b { color: var(--ink); font-weight: 600; }
.hero-art { position: relative; height: 520px; }
.hero-strands { position: absolute; inset: auto -40px -60px auto; width: 420px; height: 420px; z-index: 0; opacity: .9; }
.hero-strands path { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.2s .2s ease-out forwards; }
.hero-strands path:nth-child(2) { animation-delay: .35s; } .hero-strands path:nth-child(3) { animation-delay: .5s; } .hero-strands path:nth-child(4) { animation-delay: .65s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.frame { position: absolute; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); z-index: 1; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.frame-bar span { font-size: 11px; color: var(--ink-3); margin-left: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.f0 { width: 78%; left: 0; top: 30px; z-index: 3; animation: float 9s ease-in-out infinite; }
.f1 { width: 62%; right: 0; top: 0; z-index: 2; animation: float 11s ease-in-out -3s infinite; }
.f2 { width: 60%; right: 6%; bottom: 10px; z-index: 4; animation: float 10s ease-in-out -6s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* sections */
.sec { padding: 104px 0; scroll-margin-top: 20px; }
.sec-tight { padding: 56px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 48px); margin: 14px 0 16px; text-wrap: balance; }
.sec-head p:not(.eyebrow) { color: var(--ink-2); font-size: 18px; }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.split .sec-head { position: sticky; top: 100px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: 500 14px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; }
.chip span { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.active { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.chip.active span { color: inherit; opacity: .7; }

/* products */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prod { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.prod:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prod-shot { display: block; background: var(--bg-alt); border-bottom: 1px solid var(--line); overflow: hidden; }
.prod-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .5s ease; }
.prod:hover .prod-shot img { transform: scale(1.03); }
.prod-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod h3 { font-size: 22px; margin-top: 2px; }
.prod-tag { font-weight: 600; color: var(--ink-2); font-size: 15px; }
.prod-desc { color: var(--ink-2); font-size: 15px; line-height: 1.55; flex: 1; }
.prod-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* worldwide */
.ww { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.ww li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.ww-n { font-size: 13px; color: var(--ink-3); position: relative; padding-top: 4px; }
.ww-n::before { content: ''; display: block; width: 18px; height: 3px; border-radius: 3px; background: var(--c); margin-bottom: 8px; }
.ww h3 { font-size: 20px; margin-bottom: 6px; }
.ww p { color: var(--ink-2); }

/* services + process */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.svc-n { font-size: 13px; color: var(--ink-3); }
.svc h3 { font-size: 20px; margin: 22px 0 10px; }
.svc p { color: var(--ink-2); font-size: 15px; }
.how { margin-top: 64px; }
.how-title { font-size: 22px; margin-bottom: 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.steps li { position: relative; display: flex; flex-direction: column; gap: 6px; padding-top: 30px; }
.step-dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 3px solid var(--c); }
.step-n { font-size: 12px; color: var(--ink-3); }
.steps strong { font-size: 19px; }
.steps span:last-child { color: var(--ink-2); font-size: 15px; }

/* portfolio */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.work-shot { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.work-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.work-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.work-top h3 { font-size: 16px; letter-spacing: -.01em; line-height: 1.25; }
.work-top .pill { font-size: 11px; padding: 4px 7px; }
.work-desc { color: var(--ink-2); font-size: 14px; line-height: 1.5; flex: 1; }
.work-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.work-actions .link { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* pricing */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.way { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.way h3 { font-size: 24px; }
.way p:not(.eyebrow) { color: var(--ink-2); flex: 1; }
.way .way-price { font: 600 20px/1.2 var(--mono); color: var(--ink); flex: 0; }
.way .btn { align-self: flex-start; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.plan-pop { background: var(--card); box-shadow: var(--shadow); border-color: var(--ink); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan h3 { font-size: 22px; }
.plan-price { color: var(--ink-3); }
.plan-price strong { font-size: 36px; letter-spacing: -.03em; color: var(--ink); }
.plan-best { color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; flex: 1; }
.plan li { padding-left: 22px; position: relative; font-size: 15px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 10px; height: 2px; background: var(--green); border-radius: 2px; }
.plan .btn { align-self: flex-start; }

/* company */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.person img, .person-ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.person-ph { display: grid; place-items: center; background: var(--bg-alt); font-weight: 600; }
.person h3 { font-size: 17px; letter-spacing: -.01em; }
.role { color: var(--ink-2); font-size: 14px; }
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.office { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 8px; align-content: start; }
.office h3 { font-size: 30px; margin-bottom: 4px; }
.office a { text-decoration: none; }
.office .link { justify-self: start; margin-top: 6px; }
.ea { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: baseline; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.ea p:last-child { color: var(--ink-2); font-size: 17px; max-width: 52em; }

/* faq */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.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: 18px; font: 400 24px/1 var(--mono); color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-grid h2 { font-size: clamp(32px, 4vw, 52px); margin: 14px 0 18px; text-wrap: balance; }
.contact-grid .lede { margin-bottom: 26px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.contact { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
label .muted { font-weight: 400; }
input, select, textarea { font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 13px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }
.form-note { font-size: 13px; color: var(--ink-3); }
.contact .btn { justify-self: start; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: 15px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.ftr-grid > div:first-child { display: grid; gap: 10px; align-content: start; }
.ftr-col { display: grid; gap: 8px; align-content: start; }
.ftr-col .eyebrow { margin-bottom: 4px; }
.ftr-col a { text-decoration: none; color: var(--ink-2); }
.ftr-col a:hover { color: var(--ink); }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* checkout modal (same ids as v1) */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(10, 11, 14, .55); display: grid; place-items: center; padding: 20px; }
.modal-card { position: relative; width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.modal-card h2 { font-size: 26px; margin: 10px 0 6px; }
.modal-sub { color: var(--ink-2); margin-bottom: 18px; }
.modal-card form { display: grid; gap: 14px; }
.modal-x { position: absolute; right: 14px; top: 14px; font-size: 22px; }

/* motion (reduced-motion safe) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-strands path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 9px; font-size: 14px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .hdr-actions { margin-left: auto; }
  .hero { padding: 40px 0 64px; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split .sec-head { position: static; }
  .hero-art { height: 360px; }
  .ways, .plans, .offices { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ea { grid-template-columns: 1fr; gap: 10px; }
  .sec { padding: 72px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hide-sm { display: none; }
  .prod-grid, .work-grid, .svc-grid, .team { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work-body { padding: 12px; }
  .work-top { flex-direction: column; }
  .work-desc { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .hero-art { height: 250px; }
  .hero-strands { width: 260px; height: 260px; right: -30px; bottom: -40px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps li { padding: 0 0 0 32px; }
  .card, .way, .plan, .office { padding: 22px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex: none; }
}
