/* Additions to the supplied seed1 design. All regular text is at least 1rem. */
body { font-size: 1.125rem; line-height: 1.8; }
::selection { color: var(--ink); background: var(--accent); }
.cursor { color: var(--ink); }
[hidden] { display: none !important; }
:where(a, button, summary):focus-visible { outline: 3px solid #327bba; outline-offset: 5px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
section[id], #main-content, .archive-toolbar { scroll-margin-top: 110px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 20px; z-index: 2000; padding: 12px 20px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.brand { gap: 16px; }
.brand-logo { width: 100px; height: auto; flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; font-size: 1rem; line-height: 1.5; white-space: nowrap; }
.brand-copy > span:last-child { font-weight: 600; letter-spacing: .07em; }
.footer-logo { width: clamp(180px, 21vw, 290px); height: auto; }
.site-header { height: 100px; background: #fff; }
.site-header.is-scrolled { height: 82px; background: #fff; backdrop-filter: none; }
.desktop-nav { gap: clamp(18px, 2.2vw, 36px); }
.desktop-nav a { font-size: 1rem; }
.desktop-nav span { display: none; }
.hero { padding-top: 134px; min-height: max(860px, 100svh); background: radial-gradient(ellipse at 82% 18%, rgba(214,220,224,.45), transparent 38%), #fff; }
.hero-lines { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-meta { position: relative; z-index: 1; font-size: 1rem; letter-spacing: .02em; }
.kicker { font-size: 1.125rem; max-width: 31em; }
.hero-copy { margin-top: clamp(46px, 8vh, 96px); }
.hero h1 { font-size: clamp(3.45rem, 7.1vw, 7.875rem); }
.hero-note { width: min(53%, 760px); gap: 22px; font-size: 1rem; }
.hero-note span { max-width: 24em; }
.hero-note a { flex-shrink: 0; }
.deck-card { padding: 12px; }
.deck-card img { height: auto; aspect-ratio: 4/3; object-fit: contain; background: #e4e4e4; filter: none; }
.deck-card > span { display: block; padding: 14px 3px 4px; }
.deck-card b { display: block; font-size: 1.125rem; }
.deck-card small { display: block; margin-top: 6px; font-size: 1rem; line-height: 1.3; }
.hero-deck { top: 24%; }
.section-label { font-size: 1rem; letter-spacing: .02em; gap: 24px; }
.manifesto h2 span { color: #686868; }
.manifesto-side p, .services-intro > p, .service-content > p, .about-text p,
.process-list p, .contact-side > p { font-size: 1.125rem; line-height: 1.9; }
.margin-note, .text-link, .hero-note, .work-info > span, .works-title-row > p, .works-outro > p,
.service-content li, .number-card small, .contact-meta, .footer-brand p, .footer-links a, .footer-bottom { font-size: 1rem; }
.works .section-label span:last-child, .works-title-row > p, .works-outro > p, .work-info p { color: #bcbcbc; }
.work-info > span { color: #dbdbdb; }
.works h2 em, .round-link i { color: var(--accent); }
.round-link:hover i { color: var(--accent-text); }
.works-title-row > p { max-width: 340px; }
.filter-bar { flex-wrap: wrap; gap: 12px; }
.filter-bar button { min-height: 48px; padding: 10px 19px; font-size: 1rem; }
.filter-bar button span { font-size: 1rem; color: inherit; opacity: .85; }
.filter-bar button.active, .filter-bar button:hover { color: var(--ink); }
.work-grid { row-gap: clamp(40px, 5vw, 76px); }
.work-card:nth-child(even) { grid-column: 8 / span 5; margin-top: 40px; }
.work-card.work-wide:nth-child(even) { grid-column: 6 / span 7; }
.work-visual, .work-tall .work-visual { display: flex; align-items: center; justify-content: center; aspect-ratio: auto; padding: 14px; background: #e4e4e4; }
.work-visual img, .work-tall .work-visual img { width: 100%; max-width: min(100%, var(--source-width, 100%)); height: auto; max-height: none; object-fit: contain; aspect-ratio: auto; filter: none; transform: none; }
.work-visual:hover { background: #f0f0f0; }
.work-index { top: 12px; left: 12px; min-width: 40px; height: 40px; font-size: 1rem; }
.work-info { grid-template-columns: 1fr; }
.work-info > span { grid-column: 1; grid-row: auto; max-width: none; margin-top: 10px; }
.work-info p { font-size: 1rem; }
.round-link { min-width: 170px; min-height: 170px; }
.round-link small { font-family: var(--mono); font-size: 1rem; }
.service-no { font-size: 1rem; }
.service-row summary p { font-size: 1rem; }
.service-description > p { margin: 0; max-width: 590px; font-size: 1.125rem; line-height: 1.9; }
.service-work-link { display: inline-block; margin-top: 24px; padding-bottom: 4px; border-bottom: 1px solid; font-size: 1rem; font-weight: 600; }
.number-card small { color: #424b58; }
.contact { color: var(--ink); background: var(--accent); }
.contact .section-label span:last-child { color: var(--ink); }
.contact .section-label, .contact-marquee { border-color: rgba(16,16,16,.3); }
.contact h2 em { color: var(--accent-deep); }
.contact .mail-link { border-color: rgba(16,16,16,.55); }
.contact .mail-link:focus-visible { outline-color: var(--ink); }
.mail-link { font-size: 1rem; overflow-wrap: anywhere; }
.contact-meta { flex-wrap: wrap; gap: 10px 24px; }
.footer-brand p, .footer-bottom { color: #bfbfbf; }
.footer-links { flex-wrap: wrap; }
.footer-bottom { gap: 24px; }
.footer-bottom button { text-align: left; min-height: 44px; }
.mobile-menu { overflow-y: auto; }
.mobile-menu > p, .mobile-menu nav b, .menu-mail { font-size: 1rem; }
.mobile-menu nav b { width: 44px; flex-shrink: 0; }
.mobile-menu nav a { font-size: clamp(1.75rem, 7vw, 3rem); }
.menu-toggle b { font-size: 1rem; letter-spacing: -.02em; }
.menu-toggle { width: 68px; height: 48px; border-radius: 0; background: #fff; }
.menu-toggle.is-open span { left: 23px; }
.menu-toggle.is-open span:first-of-type { top: 23px; transform: rotate(45deg); }
.menu-toggle.is-open span:last-of-type { top: 23px; transform: rotate(-45deg); }

/* Archive: three equal columns, original artwork proportions, no oversized thumbnails. */
.portfolio-page .site-header { background: #fff; }
.archive-intro { position: relative; isolation: isolate; overflow: hidden; width: 100%; max-width: none; padding: 170px max(var(--gutter), calc((100vw - 1600px) / 2 + var(--gutter))) 72px; background: #fff; }
.archive-squares { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; contain: layout paint; --travel: 1000px; }
.archive-squares i { position: absolute; left: var(--left); bottom: -165px; width: var(--size); height: var(--size); border: 1px solid #71816b; border-radius: 0; background: transparent; opacity: 0; animation: archive-float-up var(--duration) linear var(--delay) infinite; animation-play-state: paused; }
.archive-squares i:nth-child(3n + 1) { border-color: var(--accent); }
.archive-squares.is-running i { animation-play-state: running; }
.archive-intro > :not(.archive-squares) { position: relative; z-index: 1; }
@keyframes archive-float-up {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: .5; }
  65% { opacity: .42; }
  100% { transform: translate3d(var(--drift), calc(-1 * var(--travel)), 0) rotate(180deg); opacity: 0; }
}
@media (max-width: 600px) {
  .archive-squares i:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .archive-squares i { animation: none; bottom: var(--still-y); opacity: .25; transform: rotate(var(--still-rotate)); }
}
.archive-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-top: 48px; }
.archive-title-row h1 { font-family: var(--serif); font-size: clamp(3.5rem, 7vw, 7.4rem); line-height: 1.18; letter-spacing: -.065em; margin: 0; }
.archive-title-row h1 em { color: var(--accent-text); font-style: normal; }
.archive-title-row p { margin: 0; font-size: 1.125rem; }
.archive-title-row .archive-total { margin-top: 28px; color: var(--muted); font-size: 1rem; }
.archive-home { display: inline-block; margin-top: 36px; padding-bottom: 3px; border-bottom: 1px solid; font-size: 1rem; }
.archive-section { background: #111; color: var(--paper); padding: 48px 0 72px; }
.archive-section > .section-shell { max-width: 1500px; }
.archive-toolbar { padding: 0 0 30px; border-bottom: 1px solid #444; margin-bottom: 42px; }
.archive-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.archive-filters button { padding: 10px 18px; min-height: 48px; border: 1px solid #5b5b5b; border-radius: 100px; color: var(--paper); background: transparent; font-size: 1rem; }
.archive-filters button span { margin-left: 8px; font-family: var(--mono); color: #c2c2c2; }
.archive-filters button:hover, .archive-filters button.active { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.archive-filters button:hover span, .archive-filters button.active span { color: var(--ink); }
.archive-result { margin: 22px 0 0; font-size: 1rem; color: #bcbcbc; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 30px; align-items: start; }
.archive-grid:focus { outline: none; }
.archive-card { min-width: 0; }
.archive-visual { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4/3; background: #e2e2e2; position: relative; overflow: hidden; }
.archive-visual img { width: auto; height: auto; max-width: min(100%, var(--source-width), 430px); max-height: 100%; object-fit: contain; transform: none; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.archive-video .archive-visual { background: #111820; }
.archive-video .archive-visual img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.65); color: white; font-size: 1.25rem; pointer-events: none; }
.preview-hint { position: absolute; right: 12px; bottom: 12px; padding: 5px 12px; font-size: 1rem; background: #111; color: white; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
.archive-visual:hover .preview-hint, .archive-visual:focus-visible .preview-hint { opacity: 1; transform: none; }
.archive-info { padding-top: 18px; border-top: 1px solid #444; margin-top: 14px; }
.archive-info p { margin: 0 0 7px; color: #bcbcbc; font-size: 1rem; }
.archive-info h2 { margin: 0; font-size: 1.25rem; line-height: 1.55; letter-spacing: -.02em; overflow-wrap: anywhere; }
.archive-info h2 a:hover { color: var(--accent); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; margin-top: 64px; padding-top: 32px; border-top: 1px solid #444; }
.pagination a, .pagination > span { display: grid; place-items: center; min-width: 46px; min-height: 46px; padding: 7px 12px; border: 1px solid #545454; font-size: 1rem; }
.pagination a:hover { border-color: var(--accent); }
.pagination a[aria-current] { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.pagination > span { opacity: .45; }
.pagination .pagination-gap { padding: 0; min-width: 10px; border: 0; }
.archive-contact { padding-top: 76px; padding-bottom: 80px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.archive-contact p { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 3rem); margin: 0; }
.archive-contact a { flex-shrink: 0; border-bottom: 1px solid; padding: 12px 0; }
.noscript-note { margin-top: 40px; }

/* Native modal gives keyboard focus containment and makes the rest of the page inert. */
.preview-open { overflow: hidden; }
.work-dialog { position: fixed; width: min(1320px, calc(100vw - 48px)); max-width: none; height: min(1000px, calc(100dvh - 48px)); max-height: none; padding: 0; border: 1px solid #686868; background: var(--paper); color: var(--ink); overflow: hidden; }
.work-dialog[open] { display: flex; flex-direction: column; }
.work-dialog::backdrop { background: rgba(10, 10, 10, .84); }
.preview-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 28px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.preview-header p { margin: 0 0 5px; color: var(--muted); font-size: 1rem; }
.preview-header h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.45; }
.preview-close { display: flex; align-items: center; gap: 14px; flex-shrink: 0; padding: 9px 14px; border: 1px solid var(--line); background: transparent; font-size: 1rem; min-height: 46px; }
.preview-close span { font-family: var(--sans); font-size: 1.5rem; line-height: 1; }
.preview-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: #dcdcdc; overflow: auto; }
.preview-image { display: block; width: auto; height: auto; max-width: min(100%, var(--source-width, 100%)); max-height: 100%; object-fit: contain; }
.preview-error { text-align: center; }
.preview-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 16px 28px; border-top: 1px solid var(--line); flex-shrink: 0; }
.preview-nav { display: flex; align-items: center; gap: 20px; }
.preview-nav button, .preview-website { min-height: 46px; padding: 9px 14px; border: 1px solid #747474; background: transparent; font-size: 1rem; }
.preview-nav button:hover:not(:disabled), .preview-close:hover { background: var(--paper-deep); }
.preview-position { font-family: var(--mono); font-size: 1rem; white-space: nowrap; }
.preview-website { background: var(--ink); color: white; border-color: var(--ink); }

@media (max-width: 1100px) {
  .hero-note { width: 54%; }
  .hero-meta p:last-child { max-width: 20em; text-align: right; }
  .hero-deck { right: -14vw; top: 30%; }
  .hero-copy { width: 68%; }
  .archive-title-row { align-items: center; }
}
@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .site-header, .site-header.is-scrolled { height: 84px; }
  .brand-logo { width: 92px; }
  .menu-toggle { position: fixed; top: 18px; right: var(--gutter); left: auto; display: grid !important; place-items: center; border: 1px solid var(--ink); background: #fff; z-index: 102; }
  .menu-toggle b { display: block; font-family: var(--mono); font-size: 1rem; }
  .menu-toggle span { display: none; }
  .menu-toggle.is-open b { display: none; }
  .menu-toggle.is-open span { display: block; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-title-row { align-items: flex-start; flex-direction: column; gap: 32px; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .work-card:nth-child(even), .work-card.work-wide:nth-child(even) { grid-column: auto; margin-top: 0; }
  .work-grid { row-gap: 40px; }
  .hero { padding-top: 112px; min-height: 1040px; }
  .hero-copy { width: 100%; margin-top: 42px; }
  .hero h1 { font-size: clamp(3.25rem, 11vw, 5.4rem); }
  .hero-deck { top: auto; bottom: 105px; right: -9%; height: 390px; width: 105%; }
  .deck-card { width: clamp(240px, 48vw, 340px); }
  .hero-note { width: calc(100% - var(--gutter) * 2); }
  .hero-note span { display: none; }
  .works-outro > p { max-width: 20em; }
  .works-outro { gap: 28px; }
  .section-label { align-items: flex-start; }
  .section-label span:last-child { max-width: 48%; text-align: right; }
  .contact-meta { flex-direction: column; }
}
@media (max-width: 600px) {
  .brand { gap: 10px; max-width: calc(100% - 84px); }
  .brand-logo { width: 64px; }
  .brand-copy { white-space: normal; min-width: 0; line-height: 1.25; }
  .brand-copy > span:last-child { white-space: nowrap; letter-spacing: 0; }
  .archive-intro { padding-top: 124px; padding-bottom: 44px; }
  .archive-title-row { margin-top: 32px; }
  .archive-title-row h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .archive-section { padding-top: 32px; }
  .archive-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .archive-filters { gap: 8px; }
  .archive-filters button { padding: 9px 14px; }
  .archive-contact { align-items: flex-start; flex-direction: column; padding-top: 48px; padding-bottom: 48px; }
  .work-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .preview-header { padding: 16px; gap: 14px; }
  .preview-header h2 { font-size: 1.125rem; }
  .preview-close { padding: 7px 10px; gap: 6px; }
  .preview-stage { padding: 10px; }
  .preview-footer { padding: 12px; gap: 12px; }
  .preview-nav { justify-content: space-between; width: 100%; gap: 8px; }
  .preview-website { width: 100%; text-align: center; }
  .pagination { gap: 6px; }
  .pagination a, .pagination > span { padding: 7px 10px; min-width: 42px; }
}
@media (max-width: 540px) {
  .hero { min-height: 920px; padding-top: 110px; }
  .hero-copy { margin-top: 32px; }
  .kicker { max-width: 16em; font-size: 1.125rem; margin-left: 0; }
  .hero h1 { font-size: clamp(2.75rem, 12.4vw, 4.25rem); }
  .hero-deck { bottom: 115px; top: auto; right: -16%; height: 325px; width: 120%; }
  .deck-card { width: 225px; padding: 9px; }
  .deck-card b, .deck-card small { font-size: 1rem; }
  .deck-card > span { padding: 10px 2px 3px; }
  .card-two { top: 13%; }
  .card-three { top: 27%; }
  .hero-note { bottom: 28px; }
  .section-label { flex-direction: column; gap: 8px; }
  .section-label span:last-child { max-width: 100%; text-align: left; }
  .manifesto h2 { font-size: clamp(1.85rem, 7.8vw, 2.45rem); }
  .works h2, .services h2, .about h2, .process h2, .contact h2 { font-size: clamp(2rem, 8.4vw, 2.65rem); }
  .works-outro { align-items: flex-start; }
  .works-outro > p { max-width: 10em; }
  .round-link { min-width: 140px; min-height: 140px; font-size: 1.125rem; }
  .service-row summary { grid-template-columns: 36px 1fr 36px; gap: 6px; }
  .service-row h3 { font-size: 1.375rem; }
  .number-card { grid-template-columns: .9fr 1fr; padding-left: 0; padding-right: 0; gap: 12px; }
  .footer-links { gap: 22px; }
  .footer-brand { padding-bottom: 36px; }
  .footer-brand p { margin-top: 8px; }
  .footer-bottom { gap: 12px; }
}
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .brand { gap: 8px; }
  .brand-logo { width: 56px; }
  .hero { min-height: 940px; }
  .hero h1 { font-size: 2.65rem; }
  .preview-footer { padding: 8px; }
  .preview-nav button { padding: 8px; }
  .works-outro { flex-direction: column; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work-visual:hover img, .work-visual:focus-visible img,
  .archive-visual:hover img, .archive-visual:focus-visible img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
  .hero-deck { transform: none; }
}
