/* Hallmark · macrostructure: Photographic (locked handoff) · theme: locked — brand.md v2 (kraft / ink / vermilion) · studied: yes · DNA-source: design_handoff_jameschong_au · motion: none */
/* jameschong.au — production styles
 * High-fidelity recreation of design handoff v3.
 * Tokens mirror brand.md / README design tokens.
 *
 * Edit aiStage suffix in index.html only (Selected work · AI assistant).
 */

:root {
  --color-kraft: #efe7d8;
  --color-ink: #2b2119;
  --color-vermilion: #b3402a;
  --color-vermilion-hover: #8f3221;
  --color-muted: #4a3f31;
  --color-meta: #6b5d4a;
  --color-selection: #e8cbb8;
  --color-footer-rule: rgba(43, 33, 25, 0.3);
  --color-kraft-translucent: rgba(239, 231, 216, 0.7);
  --color-dot: rgba(43, 33, 25, 0.12);
  --color-link-underline: rgba(179, 64, 42, 0.4);
  --color-highlight: rgba(179, 64, 42, 0.16);

  --font-sans: "Schibsted Grotesk", system-ui, sans-serif;
  --text-body: 17px;
  --leading-body: 1.6;
  --leading-body-loose: 1.65;

  --space-content: 1080px;
  --space-gutter: 40px;
  --space-section: 112px;
  --space-section-lg: 128px;
  --space-section-sm: 96px;
}

/* Reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-kraft);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-vermilion);
  text-decoration-color: var(--color-link-underline);
}

a:hover {
  color: var(--color-vermilion-hover);
}

::selection {
  background: var(--color-selection);
}

:focus-visible {
  outline: 2px solid var(--color-vermilion);
  outline-offset: 2px;
}

/* Layout shell */
.wrap {
  max-width: var(--space-content);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--space-gutter);
  padding-right: var(--space-gutter);
}

.main {
  padding-bottom: 56px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
}

.hero__rail {
  position: relative;
  padding-top: 40px;
  pointer-events: none;
}

.hero__rail-inner {
  border-top: 4px solid var(--color-ink);
  border-bottom: 1px solid var(--color-ink);
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__rail-loc {
  color: var(--color-vermilion);
}

.hero__content {
  position: relative;
  margin-top: auto;
  padding-bottom: 48px;
  pointer-events: none;
}

.hero__title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 15ch;
  text-wrap: balance;
}

.hero__title-accent {
  color: var(--color-vermilion);
}

.hero__sub {
  font-size: 20px;
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 52ch;
  color: var(--color-ink);
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
  pointer-events: auto;
}

/* Buttons — square corners */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--color-vermilion);
  color: var(--color-kraft);
  padding: 14px 28px;
  border: none;
}

.btn--primary:hover {
  background: var(--color-vermilion-hover);
  color: var(--color-kraft);
}

.btn--secondary {
  border: 2px solid var(--color-ink);
  color: var(--color-ink);
  padding: 12px 26px;
  background: var(--color-kraft-translucent);
}

.btn--secondary:hover {
  background: var(--color-kraft);
  color: var(--color-ink);
}

/* —— Sections —— */
.section {
  margin-top: var(--space-section);
  position: relative;
}

.section--thesis {
  margin-top: var(--space-section-sm);
}

.section--about,
.section--contact {
  margin-top: var(--space-section-lg);
}

.kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-vermilion);
  font-weight: 500;
}

/* Terracotta text highlight (site-wide treatment) */
.hl {
  background: var(--color-highlight);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 2px 12px;
  margin-left: -12px;
}

.hl-kicker {
  background: var(--color-highlight);
  padding: 3px 8px;
  margin-left: -8px;
}

/* Thesis */
.thesis {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  max-width: 34ch;
  text-wrap: pretty;
}

.logo-mark {
  position: absolute;
  right: -8px;
  top: -24px;
  width: 56px;
  height: 56px;
  opacity: 0.85;
  pointer-events: none;
}

.logo-mark--contact {
  top: auto;
  bottom: -16px;
  width: 44px;
  height: 44px;
  opacity: 0.75;
}

/* Point of view */
.pov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 40px;
  margin-top: 24px;
}

.pov-grid h3 {
  font-size: 25px;
  font-weight: 700;
  font-style: normal;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pov-grid p {
  font-size: 17px;
  line-height: 1.6;
  margin: 12px 0 0;
  color: var(--color-muted);
}

/* What I do + Selected work */
.stack {
  display: grid;
  gap: 44px;
  margin-top: 24px;
  max-width: 72ch;
}

.stack--work {
  gap: 36px;
}

.stack h3 {
  font-size: 30px;
  font-weight: 700;
  font-style: normal;
  margin: 0;
  letter-spacing: -0.02em;
}

.stack--work h3 {
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: normal;
}

.stack p {
  font-size: 17px;
  line-height: var(--leading-body-loose);
  margin: 14px 0 0;
  color: var(--color-muted);
}

.stack--work p {
  line-height: 1.6;
  margin-top: 10px;
}

.work-suffix {
  color: var(--color-vermilion);
  font-weight: 500;
}

/* About */
.about-halftone {
  position: absolute;
  left: calc(var(--space-gutter) * -1);
  top: 40px;
  bottom: 40px;
  width: 120px;
  background-image: radial-gradient(circle, var(--color-dot) 26%, transparent 30%);
  background-size: 8px 8px;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 56px;
  align-items: center;
  position: relative;
}

.about-grid h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  font-style: normal;
  margin: 16px 0 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.about-grid h2 .hl {
  padding: 2px 10px;
  margin-left: -10px;
}

.about-grid .lede,
.about-grid .body {
  font-size: 17px;
  line-height: var(--leading-body-loose);
  color: var(--color-muted);
}

.about-grid .lede {
  margin: 20px 0 0;
}

.about-grid .body {
  margin: 14px 0 0;
}

/* "Life with A.I." interactive portrait */
.portrait-fig {
  margin: 0;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.portrait-filter-def { position: absolute; }

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: url(#img-sharpen) contrast(1.04) saturate(1.05);
}

.portrait-reveal {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portrait-fig:hover .portrait-reveal { opacity: 1; }

.portrait-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portrait-tag__dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--color-vermilion);
  border-radius: 50%;
  background: rgba(239, 231, 216, 0.6);
  flex: none;
}

.portrait-tag__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-vermilion);
  background: rgba(239, 231, 216, 0.92);
  padding: 3px 7px;
  white-space: nowrap;
}

.portrait-cap {
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 10px;
  color: var(--color-meta);
  min-height: 42px;
}

.portrait-cap__default,
.portrait-cap__hover {
  transition: opacity 0.35s ease;
}

.portrait-cap__hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.portrait-fig:hover .portrait-cap__default { opacity: 0; }
.portrait-fig:hover .portrait-cap__hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .portrait-reveal,
  .portrait-cap__default,
  .portrait-cap__hover {
    transition: none;
  }
}

/* Contact */
.contact-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  font-style: normal;
  margin: 0;
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.email-at { color: var(--color-ink); }

.contact-title-accent {
  color: var(--color-vermilion);
}

.contact-lead {
  font-size: 19px;
  line-height: 1.6;
  margin: 24px 0 0;
}

.contact-meta {
  font-size: 17px;
  line-height: 1.6;
  margin: 12px 0 0;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  margin-top: var(--space-section);
  border-top: 1px solid var(--color-footer-rule);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--color-meta);
}

.site-footer__right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.site-footer__logo {
  width: 28px;
  height: 28px;
  display: block;
}

/* —— Responsive tweaks —— */
@media (max-width: 640px) {
  :root {
    --space-gutter: 24px;
  }

  .hero__rail-inner {
    flex-wrap: wrap;
    letter-spacing: 0.06em;
    gap: 8px 16px;
  }

  .hero__rail-inner span:nth-child(2) {
    order: 3;
    flex-basis: 100%;
  }

  .about-halftone {
    width: 64px;
    left: calc(var(--space-gutter) * -1);
  }

  .logo-mark {
    right: 0;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 400px) {
  .hero__title {
    font-size: clamp(36px, 11vw, 44px);
  }

  .hero__sub {
    font-size: 18px;
  }
}
