/* gpheller.com: shared styles for the portfolio, logo wall, thanks and 404 pages.
   Futur-style layer (2026-11-06): Inter, black / white / #F5F5F5, one blue accent. Class names kept from the Squarespace rebuild. */
:root {
  --ink: #000504;
  --body: #1D1D1F;
  --muted: #6D6F6E;
  --soft: #F5F5F5;
  --hair: #E5E5E5;
  --white: #ffffff;
  --blue: #1F35D6;
  --blue-l: #8E9BFF;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px;
  letter-spacing: -0.011em; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.5em; line-height: 1.05; }
h1 { font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.375rem, 2vw, 2rem); line-height: 1.08; }
p { margin: 0 0 1em; }
.sqsrte-large { font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.39; letter-spacing: -0.022em; }
.sqsrte-small, .text p.sqsrte-small { font-size: 15px; line-height: 1.5; }
hr { border: 0; border-top: 1px solid var(--hair); margin: 2rem 0; }
.center { text-align: center; }
::selection { background: var(--blue); color: #fff; }

/* Header: opaque black bar, wordmark left, links right */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--gutter); position: relative; z-index: 20; background: var(--ink); color: var(--white);
}
.logo { color: var(--white); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.logo img { height: 28px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: rgba(255,255,255,.9); text-decoration: none; font-size: 15px; }
.site-nav a:not(.btn):hover { color: var(--white); }
.icon-link svg, .social svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border: 1px solid var(--blue); border-radius: 999px; background: var(--blue); color: var(--white) !important;
  font-family: inherit; font-size: 15px !important; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; transition: opacity .2s;
}
.btn:hover { opacity: .88; }
.site-nav .btn { min-height: 40px; padding: 0 18px; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; }
/* Portfolio pages: bar sits on the black hero */
body.dark-top .site-header { position: absolute; left: 0; right: 0; top: 0; background: transparent; }

/* Sections */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark a { color: var(--blue-l); }
.container { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 420px; margin: 0 auto; }
.bg-media { position: absolute; inset: 0; z-index: 0; }
.bg-media video { width: 100%; height: 100%; object-fit: cover; }
.has-media::after { content: ''; position: absolute; inset: 0; background: rgba(0,5,4,.72); z-index: 0; }
body.dark-top main > .section:first-child { padding-top: clamp(140px, 14vw, 200px); padding-bottom: clamp(80px, 9vw, 130px); }

/* Rows from the original layout grid */
.row { margin: 0 auto clamp(24px, 3vw, 48px); }
.row:last-child { margin-bottom: 0; }
.row.single { max-width: var(--w); text-align: inherit; }
.row.cols { display: grid; grid-template-columns: var(--cols); column-gap: 32px; }
.row.cols.wide { column-gap: 64px; }
.row .col > * + * { margin-top: 1.5rem; }
.dark .row.single { text-align: left; }
.dark .row.single h1, .dark .row.single h2 { margin-bottom: 16px; }
.dark .row.single h3, .dark .row.single h4 { font-size: 17px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.dark .text p { color: rgba(255,255,255,.8); }
.text > :last-child { margin-bottom: 0; }
.text p { line-height: 1.5; }
.text h3 { color: var(--ink); }
.section:not(.dark) .text p { color: var(--body); }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: .75em; line-height: 1.4; }
figcaption p { margin: 0; }
.video .ratio { position: relative; padding-top: 56.25%; background: var(--ink); border-radius: 8px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.divider { display: none; }
.image img { width: 100%; border-radius: 8px; }

/* Logo galleries */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.logo-cell { background: var(--white); border: 1px solid var(--hair); border-radius: 8px; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 12px; }
.logo-cell img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; }

/* Section labels (the uppercase captions on the logo wall and elsewhere) */
.label, .logo-wall h4, .section h4 {
  font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 16px; border-bottom: 1px solid var(--hair); margin: 0 0 32px;
}
.dark h4 { color: rgba(255,255,255,.5); border-bottom-color: rgba(255,255,255,.14); }

/* Tiles (featured work grid) */
.intro { padding-top: clamp(16px, 3vw, 40px); }
.grid-section { padding-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--ink); }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .4s ease; }
.tile:hover img { transform: scale(1.04); }
.tile-title {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end;
  padding: 32px 14px 12px; background: linear-gradient(180deg, rgba(0,5,4,0), rgba(0,5,4,.85));
  color: var(--white); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.page-top { padding-top: clamp(30px, 4vw, 60px); }
.grid-section.page-top { padding-top: clamp(140px, 14vw, 200px); }
.page-title { text-align: left; font-size: clamp(2.75rem, 5vw, 4rem); margin-bottom: 48px; }
.bio-wrap { max-width: 660px; }
.bio-wrap::after { content: ''; display: block; clear: both; }
.bio-photo { float: left; width: 40%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin: .3em 32px 16px 0; }
.bio .text p { font-size: 17px; line-height: 1.5; text-align: left; }
#bio, #contact { scroll-margin-top: 10px; }

/* Pager */
.pager { display: flex; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 80px; border-top: 1px solid var(--hair); }
.pager a { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.pager a span { font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pager a strong { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.pager a:hover strong { color: var(--blue); }
.pager .next { text-align: right; }

/* Footer + form: light gray band */
.site-footer { padding: 96px 0 112px; background: var(--soft); }
.site-footer .narrow { max-width: 560px; }
.site-footer .lead { text-align: left; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 32px; color: var(--ink); }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.contact-form legend { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-form label.big { margin-bottom: 16px; }
.contact-form .req { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .8; margin-left: .3em; }
.contact-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; min-height: 48px; font: inherit; font-size: 16px;
  text-transform: none; letter-spacing: 0; background: var(--white); border: 1px solid #D4D4D4; border-radius: 6px; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form .center { text-align: left; }
.contact-form .btn { margin-top: 8px; }
.site-footer hr { border-top-color: #D9D9D9; margin: 48px 0 32px; }
.connect { text-align: left; margin-bottom: 12px; font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.social { display: inline-flex; width: 40px; height: 40px; margin: 0; background: var(--ink); color: var(--white); border-radius: 999px; align-items: center; justify-content: center; }
.social svg { width: 16px; height: 16px; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.dark a:focus-visible, .site-header a:focus-visible { outline-color: var(--blue-l); }

/* Mobile */
@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 20px;
    padding: 24px var(--gutter) 32px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.14);
  }
  .site-nav.open { display: flex; }
  .row.cols, .row.cols.wide { grid-template-columns: 1fr; row-gap: 32px; }
  .row.single { max-width: 100%; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tile-title { font-size: 13px; padding: 24px 10px 8px; }
  .bio-photo { float: none; width: 70%; margin: 0 0 24px; }
  .pager a strong { font-size: 18px; }
  .contact-form .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bg-media video { display: none; } html { scroll-behavior: auto; } .tile img { transition: none; } }
.text:has(+ .logo-grid) p { font-size: 14px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--hair); margin: 48px 0 24px; }
.col > .text:first-child:has(+ .logo-grid) p { margin-top: 0; }
.section.page-top { padding-bottom: 0; }
.section.page-top + .section { padding-top: 32px; }
h1 strong, h2 strong { font-weight: inherit; }
.dark .text p.sqsrte-large { font-size: 17px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 24px; }
.dark .text p.sqsrte-large + * , .dark .row.single .text + .text p { font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.39; letter-spacing: -0.022em; max-width: 38em; }
.container.narrow.center { max-width: 720px; text-align: left; padding-bottom: 96px; }
.container.narrow.center .page-title { margin-bottom: 16px; }
.container.narrow.center p { font-size: clamp(1.125rem, 1.55vw, 1.375rem); line-height: 1.39; color: var(--body); }
