/* Hero: one readable statement up top, the name filling the foot of the first screen. */
.hero { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-12); min-height: calc(100svh - var(--header-height)); padding: clamp(2rem, 1rem + 4vw, 5rem) var(--gutter) 0; overflow: clip; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-8) var(--space-12); align-items: end; }
.hero h1 { font-size: var(--text-h1); max-width: 12ch; }
.hero-side { display: grid; gap: var(--space-6); justify-items: start; max-width: 36rem; }
.hero-intro { color: var(--text); font-size: clamp(1.25rem, 1rem + .6vw, 1.625rem); line-height: 1.35; max-width: 30ch; }
/* The hero's eye-catcher: the first-clients price, set as large as the headline. */
.hero-price { display: grid; gap: var(--space-2); padding-bottom: var(--space-5); border-bottom: var(--border-thin) solid var(--line); width: 100%; }
.hero-price-label { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-mono); color: var(--muted); }
.hero-price-label::after { content: ""; width: .6em; height: 1.1em; background: var(--accent); animation: blink 1s steps(2) infinite; }
.hero-price-value { font-family: var(--font-display); font-size: clamp(3.5rem, 1.6rem + 5.2vw, 8rem); font-weight: var(--weight-semibold); line-height: .9; letter-spacing: var(--tracking-display); white-space: nowrap; }
.hero-price-value span { font-variant-numeric: tabular-nums; }
.hero-price-note { color: var(--muted); font-size: var(--text-sm); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.wordmark { font-family: var(--font-display); font-size: var(--text-wordmark); font-weight: var(--weight-semibold); line-height: .8; letter-spacing: -0.045em; white-space: nowrap; margin-left: -0.03em; padding-bottom: .1em; user-select: none; }
.wordmark span { display: inline; }
.wordmark { position: relative; will-change: transform; }
/* The canvas reaches past the tight line box so ascenders and the j descender fit. */
.wordmark-static { position: absolute; top: -.3em; bottom: -.3em; left: -.05em; right: -.05em; width: calc(100% + .1em); height: calc(100% + .6em); pointer-events: none; }
.motion .wordmark { color: transparent; }

/* Blocks: every section opens with the same thin bar. */
.block { padding: var(--space-section) var(--gutter) 0; }
.block-bar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: baseline; padding-bottom: var(--space-4); border-bottom: var(--border-thin) solid var(--line); margin-bottom: var(--space-8); }
.block-bar h2 { font-size: var(--text-h3); }
.block-bar p { color: var(--muted); max-width: 46ch; }
.fine-print { margin-top: var(--space-5); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }

/* Services as a directory table. */
.table { display: grid; }
.table-head, .table-row { display: grid; grid-template-columns: 5rem minmax(0, 1.1fr) minmax(0, 1.6fr) 10rem; gap: var(--space-6); align-items: baseline; }
.table-head { padding-bottom: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: var(--tracking-mono); }
.table-row { padding-block: var(--space-6); border-top: var(--border-thin) solid var(--line); text-decoration: none; transition: background-color var(--duration) var(--easing); }
.table-row:last-child { border-bottom: var(--border-thin) solid var(--line); }
.cell-no { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--muted); transition: color var(--duration) var(--easing); }
.cell-name { display: grid; gap: var(--space-1); font-family: var(--font-display); font-size: var(--text-h3); font-weight: var(--weight-semibold); line-height: 1; letter-spacing: var(--tracking-display); }
.cell-name small { font-family: var(--font-body); font-size: var(--text-sm); font-weight: var(--weight-normal); letter-spacing: 0; color: var(--muted); line-height: 1.4; margin-top: var(--space-2); }
.cell-desc { color: var(--muted); max-width: 48ch; }
.cell-price { justify-self: start; display: grid; gap: var(--space-1); font-family: var(--font-mono); font-size: var(--text-md); white-space: nowrap; }
.cell-price > span { display: inline-flex; gap: var(--space-3); }
.cell-price small { font-size: var(--text-xs); color: var(--muted); }
.cell-price .arrow { color: var(--muted); transition: transform var(--duration) var(--easing), color var(--duration) var(--easing); }
.table-row:hover { background: var(--bg-raised); }
.table-row:hover .cell-no, .table-row:hover .arrow { color: var(--accent); }
.table-row:hover .arrow { transform: translate(2px, -2px); }

/* Work: one project, its two screens, one caption. */
.work { display: grid; gap: var(--space-6); }
.work-media { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: var(--space-3); }
.work-shot { overflow: hidden; background: var(--surface); }
.work-shot-phone { align-self: start; }
.work-shot-phone img { width: 100%; height: auto; }
/* Hover-to-scroll: the whole RAMI page glides past inside a browser frame (pattern seen on konturas.lt). */
.scroll-shot { display: grid; background: var(--bg-raised); border: var(--border-thin) solid var(--line); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: var(--border-thin) solid var(--line); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.shot-bar span { margin-left: var(--space-3); }
.shot-view { container-type: inline-size; aspect-ratio: 16 / 10; overflow: hidden; cursor: ns-resize; }
.shot-view img { width: 100%; height: auto; transition: transform 1.2s var(--easing); }
.scroll-shot:hover .shot-view img, .shot-view:focus-visible img { transform: translateY(calc(-100% + 62.5cqw)); transition: transform 9s cubic-bezier(.45, 0, .55, 1); }
.shot-view:focus-visible { outline-offset: -2px; }
.scroll-shot figcaption { padding: 10px 12px; border-top: var(--border-thin) solid var(--line); }
.hint-touch { display: none; }
@media (hover: none) {
  .shot-view { overflow-y: auto; -webkit-overflow-scrolling: touch; cursor: auto; }
  .shot-view img { transform: none !important; }
  .hint-hover { display: none; } .hint-touch { display: inline; }
}
.work-info { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-8) var(--space-12); align-items: start; }
.work-text { display: grid; gap: var(--space-4); justify-items: start; }
.work-text h3 { font-size: var(--text-h3); }
.work-text > p:not(.meta):not(.placeholder-link) { color: var(--muted); max-width: 56ch; }
/* The price of a site like the concept, set where a visitor looks at it. */
.work-price { display: grid; gap: var(--space-3); justify-items: start; padding: var(--space-6); border: var(--border-thin) solid var(--accent); background: var(--bg-raised); }
.work-price .meta { color: var(--text); text-transform: uppercase; letter-spacing: var(--tracking-mono); }
.work-price-value { font-family: var(--font-display); font-size: var(--text-h1); font-weight: var(--weight-semibold); line-height: .95; letter-spacing: var(--tracking-display); color: var(--accent); }
.work-price-note { color: var(--muted); font-size: var(--text-sm); max-width: 40ch; }
.placeholder-link { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }

/* Process: four columns, numbers in mono. */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { display: grid; align-content: start; gap: var(--space-3); padding: var(--space-6) var(--space-6) var(--space-6) 0; border-top: var(--border-thin) solid var(--line); }
.steps li + li { padding-left: var(--space-6); border-left: var(--border-thin) solid var(--line); }
.steps .meta { color: var(--accent); }
.steps h3 { font-size: var(--text-lg); letter-spacing: -0.01em; }
.steps p { color: var(--muted); font-size: var(--text-sm); max-width: 34ch; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-12); align-items: end; }
.about-photo { position: relative; overflow: hidden; background: var(--surface); max-width: 460px; }
/* Portrait: with motion on, it assembles out of pixel static once as it scrolls into view (assets/motion.js). */
.photo-static { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.motion .about-photo[data-pixel]:not(.is-built) { background: none; }
.motion .about-photo[data-pixel]:not(.is-built) img { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; transition: transform 600ms var(--easing); }
.about-photo:hover img { transform: scale(1.02); }
.about-copy { display: grid; gap: var(--space-6); max-width: 46rem; }
.about-copy h3 { font-size: var(--text-h1); }
.about-copy > p { color: var(--muted); font-size: var(--text-lg); line-height: 1.5; }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-10); padding-top: var(--space-5); border-top: var(--border-thin) solid var(--line); font-family: var(--font-mono); font-size: var(--text-sm); }
.facts dt { color: var(--muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-mono); }

/* FAQ rows */
.faq-list details { border-top: var(--border-thin) solid var(--line); }
.faq-list details:last-child { border-bottom: var(--border-thin) solid var(--line); }
.faq-list summary { display: grid; grid-template-columns: 5rem 1fr auto; gap: var(--space-6); align-items: center; min-height: 72px; list-style: none; transition: background-color var(--duration) var(--easing); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--bg-raised); }
.faq-list summary:hover .meta { color: var(--accent); }
.faq-q { font-size: var(--text-lg); }
.faq-indicator { position: relative; width: 14px; height: 14px; margin-right: var(--space-2); }
.faq-indicator::before, .faq-indicator::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; transform: translateY(-50%); transition: transform var(--duration) var(--easing); }
.faq-indicator::after { transform: translateY(-50%) rotate(90deg); }
.faq-list details[open] .faq-indicator::after { transform: translateY(-50%) rotate(0deg); }
.faq-list details p { padding: 0 0 var(--space-6) calc(5rem + var(--space-6)); color: var(--muted); max-width: calc(62ch + 6.5rem); }

/* Contact: the address as big type, one yellow action. */
.contact-main { display: grid; gap: var(--space-8); justify-items: start; padding-block: var(--space-4) var(--space-8); }
.contact-email { font-family: var(--font-display); font-size: var(--text-email); font-weight: var(--weight-semibold); line-height: 1; letter-spacing: var(--tracking-display); text-decoration: none; overflow-wrap: anywhere; transition: color var(--duration) var(--easing); }
.contact-email:hover { color: var(--accent); }
.next-steps { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.next-steps h3 { font-weight: var(--weight-medium); text-transform: uppercase; letter-spacing: var(--tracking-mono); }
.next-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.next-steps li { display: grid; gap: var(--space-2); padding: var(--space-5) var(--space-6) var(--space-5) 0; border-top: var(--border-thin) solid var(--line); }
.next-steps li + li { padding-left: var(--space-6); border-left: var(--border-thin) solid var(--line); }
.next-steps li .meta { color: var(--accent); }
.next-steps p { max-width: 34ch; }
.form-wrap { max-width: 760px; margin-top: var(--space-12); }
.contact-form { display: grid; gap: var(--space-4); padding-top: var(--space-6); border-top: var(--border-thin) solid var(--line); }
.contact-form h3 { font-size: var(--text-h3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--tracking-mono); }
.field label span { color: var(--muted); text-transform: none; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border: var(--border-thin) solid var(--control-border); border-radius: var(--radius); background: var(--bg-raised); color: var(--text); font-size: var(--text-md); transition: border-color var(--duration) var(--easing); }
.field input:hover, .field textarea:hover { border-color: var(--text); }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { resize: vertical; }
.form-help { color: var(--muted); font-size: var(--text-xs); }
.form-status:empty { display: none; }
.form-status { padding: var(--space-3) var(--space-4); border: var(--border-thin) solid var(--line); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); }
.contact-form .btn { justify-self: start; }

/* Privacy and 404 */
.privacy-page { max-width: 860px; display: grid; gap: var(--space-5); padding: var(--space-12) var(--gutter) 0; }
.privacy-page h1 { font-size: var(--text-h1); }
.privacy-intro { color: var(--muted); font-size: var(--text-lg); margin-bottom: var(--space-6); }
.privacy-page section { display: grid; gap: var(--space-3); padding-top: var(--space-5); border-top: var(--border-thin) solid var(--line); }
.privacy-page h2 { font-size: var(--text-lg); letter-spacing: -0.01em; }
.privacy-page section p { color: var(--muted); max-width: 70ch; }
.back-link { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--muted); text-decoration: none; text-transform: uppercase; }
.back-link:hover { color: var(--text); }

/* Entrances (only after motion.js starts, and never under reduced motion). */
.motion [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--easing), transform 400ms var(--easing); transition-delay: var(--delay, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .hero-copy { animation: rise 600ms 120ms var(--easing) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 1100px) {
  .table-head, .table-row { grid-template-columns: 3.5rem minmax(0, 1fr) 9rem; }
  .table-head span:nth-child(3), .cell-desc { display: none; }
  .work-info { grid-template-columns: 1fr; gap: var(--space-8); }
  .work-info > * { grid-column: 1 !important; justify-self: start !important; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 1100px) {
  .hero { min-height: 0; gap: var(--space-20); }
}
@media (max-width: 800px) {
  .hero { gap: var(--space-16); }
  .hero-copy { grid-template-columns: 1fr; }
  .block-bar { grid-template-columns: 1fr; gap: var(--space-2); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wordmark { font-size: calc((100vw - var(--gutter) * 2) * 0.27); white-space: normal; line-height: .86; }
  .wordmark span { display: block; }
  .table-head { display: none; }
  .table-row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-2) var(--space-4); }
  .cell-price { grid-column: 2; justify-self: start; }
  .work-media { grid-template-columns: 1fr; }
  .work-shot-phone { display: none; }
  .next-steps ol { grid-template-columns: 1fr; }
  .next-steps li, .next-steps li + li { padding-left: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .faq-list summary { grid-template-columns: 2.5rem 1fr auto; gap: var(--space-3); padding-block: var(--space-4); }
  .faq-q { font-size: var(--text-md); }
  .faq-list details p { padding-left: calc(2.5rem + var(--space-3)); }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
