:root {
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --muted: #667085;
  --line: #e7e7e7;
  --paper: #ffffff;
  --paper-soft: #f6f6f4;
  --dark: #111111;
  --max: 1120px;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Montserrat", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.gg-site {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .gg-logo, .gg-eyebrow, .gg-label, .gg-nav-links a {
  font-family: var(--display);
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.gg-wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* Nav styles live in /css/site-nav.css */

/* Hero */
.gg-hero {
  position: relative;
  width: 100%;
  /* svh only — dvh resize on scroll made the cover image appear to drift upward */
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-color: #1a1a1a;
  background-position: 70% 28%;
  background-size: cover;
  background-repeat: no-repeat;
  /* Keep the photo locked in the viewport while the page scrolls */
  background-attachment: fixed;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .gg-hero {
    /* iOS ignores/bugs fixed backgrounds — static cover crop; beat inline desktop zooms */
    background-attachment: scroll !important;
    background-size: cover !important;
    background-image: url("/gallery/brand/home-hero-mobile.jpg") !important;
    background-position: 42% 18% !important;
  }
}
.gg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.45) 42%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}
.gg-hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 8rem 0 3.5rem;
  max-width: 800px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
}
.gg-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.88;
}
.gg-hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 1rem;
  font-size: clamp(2.05rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.gg-hero-line {
  display: block;
  max-width: 100%;
}
.gg-hero-line-roll {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28em;
  max-width: 100%;
}
.gg-hero-line-roll.is-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.gg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gg-word-roll {
  display: inline-block;
  vertical-align: bottom;
  color: #f2c14e;
  flex: 0 0 auto;
}
.gg-word-roll-mask {
  display: block;
  overflow: hidden;
  height: 1.12em;
  width: auto;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.gg-word-roll-track {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.gg-word-roll-item {
  display: block;
  width: max-content;
  max-width: none;
  height: 1.12em;
  line-height: 1.12;
  white-space: nowrap;
}
.gg-hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 34rem;
  opacity: 0.92;
}
.gg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}
.gg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.35rem;
  border-radius: 4px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
/* hover motion handled in site-motion.css */
.gg-btn-primary {
  background: #fff;
  color: #111;
}
.gg-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.gg-btn-dark {
  background: #111;
  color: #fff;
}
.gg-btn-outline-dark {
  background: transparent;
  color: #111;
  border-color: #111;
}
.gg-hero-social {
  display: flex;
  gap: 0.75rem;
}

.gg-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.gg-scroll-cue:hover {
  opacity: 1;
}
.gg-scroll-label {
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gg-scroll-mouse {
  width: 1.55rem;
  height: 2.45rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  position: relative;
  display: block;
}
.gg-scroll-wheel {
  position: absolute;
  left: 50%;
  top: 0.45rem;
  width: 0.22rem;
  height: 0.42rem;
  margin-left: -0.11rem;
  border-radius: 999px;
  background: #fff;
}
.gg-hero-social a,
.gg-footer-social a {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gg-hero-social a:hover,
.gg-footer-social a:hover {
  border-color: #fff;
  transform: translateY(-1px);
}
.gg-hero-social svg,
.gg-footer-social svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* Sections */
.gg-section {
  padding: 5rem 0;
}
.gg-section-soft { background: var(--paper-soft); }
.gg-label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.gg-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.gg-section-intro {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

.gg-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.gg-service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.7rem;
  box-shadow: 0 8px 24px rgba(17,17,17,0.04);
}
.gg-service-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.gg-service-icon svg { width: 1.1rem; height: 1.1rem; }
.gg-service h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.gg-service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.gg-portfolio {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}
.gg-portfolio-copy p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
}
.gg-portfolio-media {
  border-radius: 18px;
  overflow: hidden;
  background: #ddd;
  min-height: 320px;
}
.gg-portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.gg-quote {
  position: relative;
  color: #fff;
  background: #111 center/cover no-repeat;
  isolation: isolate;
  padding: 5.5rem 0;
  text-align: center;
}
.gg-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  z-index: 0;
}
.gg-quote-inner {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto;
}
.gg-quote blockquote {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.gg-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.95rem;
  opacity: 0.8;
}

.gg-articles-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.gg-articles-head a {
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.gg-articles-head a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.gg-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gg-article-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gg-article-card-media {
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 0.95rem;
}
.gg-article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gg-article-card:hover .gg-article-card-media img { transform: scale(1.04); }
.gg-article-card .cat {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.gg-article-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.gg-article-card .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Footer */
.gg-site-footer {
  background: var(--dark);
  color: #fff;
  padding: 3.25rem 0 1.4rem;
}
.gg-site-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.gg-site-footer .brand-name {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.gg-site-footer .brand-sub {
  margin: 0 0 1rem;
  opacity: 0.7;
  font-size: 0.92rem;
}
.gg-footer-social { display: flex; gap: 0.65rem; }
.gg-footer-center {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto;
  opacity: 0.95;
}
.gg-footer-contact p {
  margin: 0 0 0.45rem;
  opacity: 0.85;
  font-size: 0.95rem;
}
.gg-footer-contact .gg-btn {
  margin-top: 0.85rem;
}
.gg-site-footer-bottom {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 2.25rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  opacity: 0.72;
}
.gg-site-footer-bottom p { margin: 0; }
.gg-legal-links {
  display: flex;
  gap: 1rem;
}
.gg-legal-links a { text-decoration: none; }
.gg-legal-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

@media (max-width: 960px) {
  .gg-services,
  .gg-article-grid { grid-template-columns: 1fr; }
  .gg-portfolio { grid-template-columns: 1fr; }
  .gg-site-footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .gg-footer-center { text-align: left; margin: 0; max-width: none; }
}
@media (max-width: 700px) {
  .gg-nav-links { gap: 0.75rem; }
  .gg-nav-links a { font-size: 0.72rem; }
  .gg-hero-content { padding-top: 7rem; }
  .gg-articles-head { flex-direction: column; align-items: start; }
}


/* Page hero (inner pages) — static cover, same rules as home */
.gg-page-hero {
  position: relative;
  isolation: isolate;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding: 8.5rem 0 3.5rem;
  background-color: #111;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 70% 28%;
  background-attachment: fixed;
  overflow: hidden;
  box-sizing: border-box;
}
@media (max-width: 720px) {
  .gg-page-hero {
    /* Override desktop inline zoom/width crops — fill the hero cleanly */
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center 32% !important;
    min-height: 56svh;
  }
  .gg-page-hero.gg-hero-about {
    background-position: center center !important;
    background-size: cover !important;
  }
  .gg-page-hero.gg-hero-portfolio {
    background-position: 72% 28% !important;
  }
  .gg-page-hero.gg-hero-contact {
    background-position: 65% 28% !important;
  }
}
.gg-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.42) 48%, rgba(0,0,0,0.22) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.18) 45%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
  pointer-events: none;
}
.gg-page-hero .gg-wrap {
  position: relative;
  z-index: 1;
}
.gg-page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.gg-page-hero p {
  margin: 0;
  max-width: 40rem;
  opacity: 0.9;
  font-size: 1.05rem;
}

/* About */
.gg-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.gg-about-copy p { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.1rem; }
.gg-about-photo {
  border-radius: 18px;
  overflow: hidden;
  background: #ddd;
}
.gg-about-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.gg-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.gg-skill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  background: #fff;
}
.gg-skill h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.gg-skill p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Portfolio grid */
.gg-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.gg-work-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.gg-work-card-media {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 0.9rem;
}
.gg-work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gg-work-card:hover .gg-work-card-media img { transform: scale(1.04); }
.gg-work-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.gg-work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */
.gg-contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.gg-contact-details p { margin: 0 0 0.75rem; color: var(--muted); }
.gg-contact-details a { text-decoration: underline; text-underline-offset: 0.2em; }
.gg-form {
  display: grid;
  gap: 0.9rem;
}
.gg-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--display);
}
.gg-form input,
.gg-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.gg-form textarea { min-height: 140px; resize: vertical; }
.gg-form .hpc { display: none !important; }
.gg-form button {
  justify-self: start;
  margin-top: 0.35rem;
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #111;
  color: #fff;
  border-radius: 4px;
  padding: 0.9rem 1.35rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
}
.gg-form button:hover { opacity: 0.92; }

/* Footer explore column */
.gg-footer-nav-label {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  font-weight: 600;
}
.gg-footer-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.gg-footer-nav-links a { text-decoration: none; opacity: 0.9; }
.gg-footer-nav-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

@media (max-width: 960px) {
  .gg-about-grid,
  .gg-contact-layout,
  .gg-skill-grid,
  .gg-work-grid { grid-template-columns: 1fr; }
  .gg-about-photo img { min-height: 280px; }
}
