/* shared by experiences / about / contact / 404 */
.ihero { padding-top: calc(var(--nav-h) + 72px); padding-bottom: clamp(56px, 7vw, 96px); display: grid; gap: 24px; justify-items: start; }
.ihero .h1 { max-width: 18ch; }

/* experiences: editorial list with media */
.xlist { display: grid; gap: clamp(64px, 8vw, 120px); padding-bottom: clamp(80px, 10vw, 150px); }
.xrow { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.xrow:nth-child(even) .xrow__media { order: 2; }
.xrow__media { border-radius: var(--r-shell); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 4 / 3.4; }
.xrow__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.xrow:hover .xrow__media img { transform: scale(1.04); }
.xrow__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(255 46 77 / 0.18), transparent 45%); pointer-events: none; }
.xrow--duo .xrow__media img { filter: grayscale(1) contrast(1.2) brightness(0.85); }
.xrow--duo .xrow__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--red); mix-blend-mode: multiply; opacity: 0.55; }
.xrow__body { display: grid; gap: 22px; justify-items: start; }
.xrow__body h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.xrow__body > p { color: var(--text-2); max-width: 46ch; font-size: 17px; }
.xrow .prices { width: 100%; max-width: 460px; }
.xrow .prices div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.xrow .prices div + div { border-top: 1px solid var(--line); }
.xrow .prices span { color: var(--text-2); }
.xrow .prices b { font: 500 16px var(--f-mono); white-space: nowrap; }
.xrow__note { display: flex; gap: 10px; font-size: 14px; color: var(--text-3); max-width: 46ch; }
.xrow__note i { color: var(--red-2); font-size: 17px; margin-top: 2px; flex-shrink: 0; }
.contact-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* about */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__text { display: grid; gap: 22px; color: var(--text-2); font-size: 17.5px; line-height: 1.75; max-width: 60ch; }
.story__text strong { color: var(--text); font-weight: 500; }
.story__quote { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.15; color: var(--text); }
.story__media { display: grid; gap: 12px; }
.story__media img { border-radius: var(--r-core); border: 1px solid var(--line); width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.story__media img:nth-child(2) { width: 86%; margin-left: auto; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 5vw, 64px); }
.timeline li { padding: 26px; border-radius: var(--r-core); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.timeline li:first-child { background: radial-gradient(120% 120% at 0% 0%, rgb(255 46 77 / 0.2), transparent 60%), var(--surface); border-color: rgb(255 46 77 / 0.3); }
.timeline b { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.05em; line-height: 1; }
.timeline p { color: var(--text-2); font-size: 15px; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 40px; }
.cert { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; aspect-ratio: 3 / 4; transition: transform 0.6s var(--ease-spring), border-color 0.3s; display: block; }
.cert img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cert:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--red); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; padding: 24px; background: rgb(4 4 7 / 0.9); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 88dvh; width: auto; border-radius: 14px; }
.lightbox button { position: absolute; top: 18px; right: 18px; }

/* contact */
.cgrid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); padding-bottom: clamp(64px, 8vw, 120px); align-items: start; }
.cinfo { display: grid; gap: 14px; }
.cblock { padding: 26px; border-radius: var(--r-core); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.cblock h2 { font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.cblock a.mono { font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -0.02em; transition: color 0.2s; }
.cblock a.mono:hover { color: var(--red-2); }
.cblock p { color: var(--text-2); }
.map { border-radius: var(--r-shell); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--bg-3); }
.map__off { height: 100%; display: grid; align-content: center; justify-items: start; gap: 12px; padding: clamp(20px, 4vw, 36px); background: radial-gradient(90% 90% at 100% 0%, rgb(255 46 77 / 0.1), transparent 60%), var(--bg-3); }
.map__off i { font-size: 30px; color: var(--red-2); }
.map__off h3 { font-family: var(--f-display); font-size: 1.15rem; }
.map__off p { color: var(--text-2); font-size: 14.5px; max-width: 46ch; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9) hue-rotate(180deg); }
.cform { padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 18px; }
.cform__ok { display: none; }
.cform.is-sent .form-grid, .cform.is-sent > .btn { display: none; }
.cform.is-sent .cform__ok { display: grid; }
.policy { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: clamp(80px, 10vw, 140px); }
.policy article { padding: 30px; border-radius: var(--r-core); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; scroll-margin-top: calc(var(--nav-h) + 40px); }
.policy h2 { font-size: 1.35rem; }
.policy p { color: var(--text-2); }

/* 404 */
.nf { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 120px 16px 60px; }
.nf__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(7rem, 26vw, 20rem); letter-spacing: -0.07em; line-height: 0.8; }
.nf__inner { display: grid; gap: 22px; justify-items: center; }

@media (max-width: 1023px) {
  .story, .cgrid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .xrow { grid-template-columns: 1fr; }
  .xrow:nth-child(even) .xrow__media { order: 0; }
  .timeline, .policy { grid-template-columns: 1fr; }
}

.story__logo { width: 210px; height: auto; margin-bottom: 8px; filter: drop-shadow(0 0 40px rgb(255 46 77 / 0.2)); }

/* ---------- legal pages ---------- */
.legal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.legal { max-width: 72ch; color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.legal h2 { font-family: var(--f-display); color: var(--text); font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; margin: 2.2em 0 0.6em; scroll-margin-top: calc(var(--nav-h) + 40px); }
.legal h2:first-child { margin-top: 0; }
.legal p + p, .legal ul + p, .legal p + ul, .legal table + p { margin-top: 0.9em; }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 0.4em; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--red-2); }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 1em; font-size: 14.5px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.legal-table th { color: var(--text); font-weight: 600; background: var(--surface); }
.legal-table code { font-family: var(--f-mono); font-size: 13px; color: var(--text); }
.legal-meta { font: 500 12.5px var(--f-mono); color: var(--text-2); }
.legal-aside { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 8px; }
.legal-aside h2 { font: 500 12px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.legal-aside a { display: block; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); color: var(--text-2); transition: border-color 0.2s, color 0.2s; }
.legal-aside a:hover { color: var(--text); border-color: var(--line-2); }
.legal-aside a[aria-current="page"] { color: var(--text); border-color: rgb(255 46 77 / 0.5); background: var(--red-tint); }
.legal-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.legal-cards a { padding: 22px; border-radius: var(--r-core); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; transition: border-color 0.3s, transform 0.5s var(--ease-spring); }
.legal-cards a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.legal-cards i { font-size: 24px; color: var(--red-2); }
.legal-cards strong { font-weight: 500; }
.legal-block { padding-bottom: clamp(80px, 10vw, 140px); }
@media (max-width: 1023px) { .legal-wrap { grid-template-columns: 1fr; } .legal-aside { position: static; } .legal-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .legal-cards { grid-template-columns: 1fr; } .legal-table { font-size: 13.5px; } .legal-table th, .legal-table td { padding: 10px 8px; } }

/* ---------- 404 ---------- */
.nf { position: relative; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 56px) 0 72px; overflow: hidden; }
.nf__glow { position: absolute; inset: auto 0 -30% 0; height: 70%; background: radial-gradient(50% 60% at 50% 100%, rgb(255 46 77 / 0.22), transparent 70%); pointer-events: none; }
.nf__inner { position: relative; display: grid; gap: 22px; justify-items: center; max-width: 820px; }
.nf__logo { width: 170px; height: auto; filter: drop-shadow(0 0 40px rgb(255 46 77 / 0.3)); }
.nf__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(6rem, 22vw, 15rem); letter-spacing: -0.07em; line-height: 0.8; margin: 4px 0 6px; }
.nf .h2 { max-width: 22ch; }
.nf__path { color: var(--text-2); font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); max-width: 100%; overflow-wrap: anywhere; }
.nf__search { width: min(620px, 100%); display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 18px; border-radius: 999px; border: 1px solid var(--line-input); background: var(--surface); margin-top: 6px; }
.nf__search:focus-within { border-color: var(--red-2); box-shadow: 0 0 0 4px rgb(255 46 77 / 0.16); }
.nf__search i { color: var(--text-2); font-size: 19px; }
.nf__search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 15.5px; height: 44px; }
.nf__search input::placeholder { color: var(--text-3); }
.nf__cats { display: grid; gap: 12px; justify-items: center; margin-top: 8px; }
.nf__h { font: 500 12px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.nf__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nf__actions { justify-content: center; margin-top: 10px; }
@media (max-width: 600px) { .nf__search { border-radius: 22px; flex-wrap: wrap; padding: 10px; } .nf__search .btn { width: 100%; justify-content: space-between; } }
.cblock__strong { color: var(--text) !important; font-weight: 500; }
.cblock .mono { font-size: 13.5px; color: var(--text-2); }
