/* Taggha LLC — stylesheet
   Palette: warm grey. Type: Inter, self-hosted and subset to Latin. */

@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #1b1b1e;
  --ink-soft: #35353a;
  --grey-700: #55555d;
  --grey-600: #6b6b73;
  --grey-500: #8b8b93;
  --grey-400: #adadb4;
  --grey-300: #cbcbd1;
  --grey-200: #e2e2e6;
  --grey-100: #efeff1;
  --grey-50: #f7f7f8;
  --paper: #ffffff;
  --brass: #96805c;
  --brass-light: #b39c74;
  --brass-dark: #756347;

  --text: var(--ink);
  --text-2: var(--grey-600);
  --text-3: var(--grey-500);
  --rule: var(--grey-200);
  --rule-dark: #33333a;

  --t--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --t-0: clamp(0.97rem, 0.94rem + 0.15vw, 1.06rem);
  --t-1: clamp(1.12rem, 1.05rem + 0.3vw, 1.32rem);
  --t-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.85rem);
  --t-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.75rem);
  --t-4: clamp(2.05rem, 1.55rem + 2.4vw, 3.9rem);
  --t-5: clamp(2.35rem, 1.6rem + 3.6vw, 5rem);

  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;

  --wrap: 1220px;
  --wrap-mid: 900px;
  --wrap-narrow: 720px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--t-0);
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.14; letter-spacing: -0.02em; }
p { margin: 0 0 var(--s-4); }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Layout */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-mid { width: min(100% - 2.5rem, var(--wrap-mid)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.band { padding-block: clamp(3.5rem, 7vw, 7rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.band--grey { background: var(--grey-50); }
.band--ink { background: var(--ink); color: var(--grey-300); }
.band--ink h2, .band--ink h3 { color: var(--paper); }
.band--ink .kicker { color: var(--brass-light); }

.cols { display: grid; gap: var(--s-6); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

/* Type */
.kicker {
  display: block;
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--s-4);
}
.title { font-size: var(--t-4); font-weight: 300; letter-spacing: -0.03em; }
.head { font-size: var(--t-3); font-weight: 300; letter-spacing: -0.025em; }
.sub { font-size: var(--t-2); font-weight: 400; }
.lead { font-size: var(--t-1); font-weight: 300; line-height: 1.6; color: var(--text-2); }
.soft { color: var(--text-2); }
.centred { text-align: center; }

.prose p { max-width: 64ch; }
.prose p + p { margin-top: 0; }

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9em 1.85em;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--grey-300); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--pale { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--pale:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--ink); }
.btn--pale-line { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.32); }
.btn--pale-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btns { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--grey-300);
  padding-bottom: 0.35em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.more::after { content: '→'; transition: transform 0.25s var(--ease); }
.more:hover { color: var(--brass-dark); border-color: var(--brass); }
.more:hover::after { transform: translateX(4px); }
.band--ink .more { color: var(--paper); border-color: var(--rule-dark); }
.band--ink .more:hover { color: var(--brass-light); border-color: var(--brass-light); }

/* Header */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.masthead__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); min-height: 72px;
}
.mark { display: flex; align-items: center; flex-shrink: 0; }
.mark img { height: 32px; width: auto; }
.menu { display: flex; align-items: center; gap: var(--s-6); }
.menu a {
  font-size: 0.81rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--grey-700); padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); border-color: var(--brass); }

/* The button in the nav must beat the .menu a rules above on specificity */
.menu a.btn {
  color: var(--paper);
  padding: 0.9em 1.85em;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  border: 1px solid var(--ink);
}
.menu a.btn:hover,
.menu a.btn[aria-current="page"] {
  color: var(--paper);
  background: var(--brass-dark);
  border-color: var(--brass-dark);
}
.burger {
  display: none; width: 44px; height: 44px;
  border: 1px solid var(--rule); background: transparent;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 1px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: var(--ink);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

@media (max-width: 960px) {
  .burger { display: inline-flex; }
  .menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: var(--s-3) 1.25rem var(--s-5);
    display: none;
  }
  .menu[data-open="true"] { display: flex; }
  .menu a { padding: 0.85rem 0; border-bottom: 1px solid var(--grey-100); }
  .menu .btn { margin-top: var(--s-4); justify-content: center; border: 1px solid var(--ink); }
}

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,27,30,0.78) 0%, rgba(27,27,30,0.5) 42%, rgba(27,27,30,0.94) 100%);
}
.hero__body { position: relative; padding-block: clamp(5rem, 13vw, 10rem); }
.hero h1 { font-size: var(--t-5); font-weight: 300; letter-spacing: -0.035em; max-width: 17ch; color: var(--paper); }
.hero .lead { color: var(--grey-300); max-width: 54ch; margin-top: var(--s-5); }
.hero .kicker { color: var(--brass-light); }

/* Two audiences */
.routes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.route {
  background: rgba(27,27,30,0.6);
  padding: clamp(1.75rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: background 0.3s var(--ease);
}
.route:hover { background: rgba(53,53,58,0.9); }
.route__tag { font-size: 0.69rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-light); }
.route h2 { font-size: var(--t-2); color: var(--paper); font-weight: 400; }
.route p { color: var(--grey-300); font-size: 0.95rem; margin-bottom: var(--s-3); }
.route .more { margin-top: auto; align-self: flex-start; color: var(--paper); border-color: rgba(255,255,255,0.28); }

/* Page header */
.pagehead { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.pagehead__bg { position: absolute; inset: 0; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.pagehead__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,27,30,0.82) 0%, rgba(27,27,30,0.72) 100%);
}
.pagehead__body { position: relative; padding-block: clamp(3.5rem, 8vw, 6rem); }
.pagehead h1 { font-size: var(--t-4); font-weight: 300; color: var(--paper); max-width: 19ch; }
.pagehead .lead { color: var(--grey-300); margin-top: var(--s-5); max-width: 58ch; }
.pagehead .kicker { color: var(--brass-light); }

/* Breadcrumbs */
.trail { font-size: 0.77rem; color: var(--text-3); padding-block: var(--s-4); border-bottom: 1px solid var(--rule); }
.trail ol { display: flex; flex-wrap: wrap; gap: 0.5em; }
.trail li + li::before { content: '/'; margin-right: 0.5em; color: var(--grey-300); }
.trail a:hover { color: var(--ink); }

/* Section intro */
.intro { max-width: 66ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.intro h2 { font-size: var(--t-3); font-weight: 300; letter-spacing: -0.025em; }
.intro p { margin-top: var(--s-4); color: var(--text-2); font-size: var(--t-1); font-weight: 300; line-height: 1.6; }
.band--ink .intro p { color: var(--grey-300); }

/* Panels */
.panel {
  border-top: 1px solid var(--rule);
  padding-top: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.panel h3 { font-size: var(--t-1); font-weight: 500; letter-spacing: -0.01em; }
.panel p { color: var(--text-2); font-size: 0.96rem; margin: 0; }
.panel .more { margin-top: var(--s-3); align-self: flex-start; }
.band--ink .panel { border-color: var(--rule-dark); }
.band--ink .panel p { color: var(--grey-400); }

.ticks { display: flex; flex-direction: column; gap: 0.45rem; margin-top: var(--s-2); }
.ticks li { font-size: 0.93rem; color: var(--text-2); padding-left: 1.1em; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 5px; height: 1px; background: var(--brass); }
.band--ink .ticks li { color: var(--grey-400); }

/* Split feature */
.feature {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.feature__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature--flip .feature__img { order: 2; }
@media (max-width: 800px) { .feature--flip .feature__img { order: 0; } }

/* Numbered service blocks */
.service { border-top: 1px solid var(--rule); padding-block: clamp(2rem, 4vw, 3.25rem); }
.service:last-child { border-bottom: 1px solid var(--rule); }
.service__grid { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .service__grid { grid-template-columns: 1fr; gap: var(--s-4); } }
.service__n { font-size: 0.71rem; letter-spacing: 0.2em; color: var(--brass); font-weight: 500; padding-top: 0.5em; }
.service h2 { font-size: var(--t-2); font-weight: 400; margin-bottom: var(--s-4); }
.service p { color: var(--text-2); }
.service p:last-of-type { margin-bottom: 0; }
.service__img { margin-top: var(--s-5); }
.service__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Work grid */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filters button {
  padding: 0.58em 1.2em; font-size: 0.77rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--rule); color: var(--text-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.filters button:hover { border-color: var(--grey-400); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-4); }
.frame { position: relative; overflow: hidden; background: var(--grey-100); display: block; }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.frame:hover img { transform: scale(1.04); }
.frame__cap {
  position: absolute; inset: auto 0 0 0;
  padding: var(--s-6) var(--s-4) var(--s-4);
  background: linear-gradient(180deg, rgba(27,27,30,0) 0%, rgba(27,27,30,0.86) 100%);
  color: var(--paper);
}
.frame__cap strong { display: block; font-size: 0.94rem; font-weight: 500; }
.frame__cap span { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey-300); }
.frame[hidden] { display: none; }

/* Clients */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); }
.logos img { height: 52px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.5; transition: opacity 0.25s var(--ease), filter 0.25s var(--ease); }
.logos img:hover { opacity: 1; filter: grayscale(0); }

/* Numbered steps */
.steps { display: grid; gap: 0; }
.step { border-top: 1px solid var(--rule); padding-block: var(--s-5); display: grid; grid-template-columns: 4rem 1fr; gap: var(--s-5); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__n { font-size: 0.71rem; letter-spacing: 0.2em; color: var(--brass); font-weight: 500; padding-top: 0.45em; }
.step h3 { font-size: var(--t-1); font-weight: 500; margin-bottom: var(--s-2); }
.step p { color: var(--text-2); font-size: 0.96rem; margin: 0; max-width: 66ch; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: var(--s-2); } }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: var(--s-5) 2.5rem var(--s-5) 0;
  font-size: var(--t-1); font-weight: 400; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 300; color: var(--brass);
}
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding-bottom: var(--s-5); color: var(--text-2); max-width: 72ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(250px, 0.75fr) minmax(320px, 1.25fr); gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }
.detail { margin-bottom: var(--s-6); }
.detail h3 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: var(--s-2); }
.detail p, .detail a { font-size: 1.01rem; color: var(--text); margin: 0; }
.detail a:hover { color: var(--brass-dark); }

.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85em 1em; font: inherit; font-size: 0.95rem;
  color: var(--text); background: var(--paper); border: 1px solid var(--grey-300);
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--grey-700); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } }
.note { font-size: 0.8rem; color: var(--text-3); }
.form button[disabled] { opacity: 0.55; cursor: default; }
.thanks {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-left: 2px solid var(--brass);
  background: var(--grey-50);
}
.thanks p { margin: 0; font-size: 0.95rem; color: var(--text-2); }
.thanks strong { color: var(--text); font-weight: 500; }

/* Social */
.social { display: flex; gap: var(--s-3); }
.social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--rule);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.social a:hover { border-color: var(--grey-700); background: var(--grey-50); }
.social img { width: 18px; height: 18px; object-fit: contain; }

/* Closing call to action */
.closer { background: var(--ink); color: var(--paper); }
.closer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); padding-block: clamp(3rem, 6vw, 5rem); }
.closer h2 { font-size: var(--t-3); font-weight: 300; color: var(--paper); max-width: 19ch; }
.closer p { color: var(--grey-400); margin-top: var(--s-3); max-width: 50ch; }

/* Footer */
.footer { background: var(--ink); color: var(--grey-400); border-top: 1px solid var(--rule-dark); }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s-6); padding-block: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 0.71rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-500); font-weight: 500; margin-bottom: var(--s-4); }
.footer li { margin-bottom: var(--s-2); }
.footer a { font-size: 0.92rem; color: var(--grey-300); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--paper); }
.footer p { font-size: 0.92rem; color: var(--grey-500); }
.footer .mark { margin-bottom: var(--s-4); }
.footer .social a { border-color: var(--rule-dark); }
.footer .social a:hover { background: var(--ink-soft); border-color: var(--grey-600); }
.footer .social img { filter: invert(1) opacity(0.7); }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4);
  padding-block: var(--s-5); border-top: 1px solid var(--rule-dark);
  font-size: 0.81rem; color: var(--grey-600);
}

/* Scroll reveal */
.rise { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rise.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }

/* Utilities */
.jump {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1.25rem; font-size: 0.85rem;
}
.jump:focus { left: 1rem; top: 1rem; }
.hidden-visually {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
