*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ground:        #0D0F11;
  --card:          #111316;
  --ink:           #EDEAE3;
  --ink-secondary: #6B6860;
  --ink-ghost:     #2E3135;
  --ink-mid:       #8C8880;
}
html, body { height: 100%; background: var(--ground); font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior-y: contain; }
.shell { position: relative; display: grid; place-items: center; min-height: 100dvh; width: 100vw; padding: 20px; }
.card { position: relative; background: var(--card); width: 100%; max-width: 680px; min-height: 0; border: 1px solid var(--ink-ghost); display: flex; flex-direction: column; transition: transform 700ms ease-in-out; }
.card.revealed { transform: translateY(220px); }
.reveal-panel { position: absolute; top: 0; left: 0; right: 0; height: 220px; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 500ms ease-in-out; }
.reveal-panel.visible { opacity: 1; pointer-events: auto; }
.reveal-text { font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 22px; letter-spacing: 0.02em; color: var(--ink-mid); cursor: pointer; transition: color 500ms ease-in-out, filter 500ms ease-in-out; }
.reveal-text.glow { color: var(--ink); filter: brightness(1.7); }
.tangram-panel { position: absolute; top: 0; left: 0; right: 0; height: 220px; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 500ms ease-in-out; }
.tangram-panel.visible { opacity: 1; pointer-events: auto; }
.tangram-grid { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); gap: 8px; }
.tangram-cell { width: 44px; height: 44px; border: 1px solid var(--ink-ghost); background: transparent; cursor: pointer; transition: transform 700ms ease-in-out, background 400ms ease-in-out, border-color 400ms ease-in-out, filter 400ms ease-in-out; }
.tangram-cell.tapped { border-color: var(--ink-mid); }
.tangram-cell.solved { border-color: #B8732A; background: #B8732A; }
.tangram-cell.glow { filter: brightness(1.8); }
.card-header { padding: 56px 64px 48px; position: relative; flex-shrink: 0; }
.name { font-size: clamp(44px, 8vw, 88px); font-weight: 300; color: var(--ink); line-height: 0.92; letter-spacing: -0.01em; display: block; }
.name-first { display: block; }
.name-last  { display: block; padding-left: 0.5em; }
.tagline { margin-top: 28px; font-size: 14px; font-weight: 400; font-style: italic; color: var(--ink-secondary); line-height: 1.4; display: flex; align-items: baseline; gap: 10px; min-height: 20px; }
.tagline-text { transition: opacity 300ms ease; }
.tagline-text.hidden { opacity: 0; }
.square-wrap { display: inline-flex; align-items: center; flex-shrink: 0; cursor: pointer; }
.square-svg { display: block; }
.square-path { animation: rotate 12s linear infinite; transform-origin: 9px 9px; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .square-path { animation: none; } }
.rule { width: 100%; height: 1px; background: var(--ink-ghost); flex-shrink: 0; }
.card-content { padding: 40px 64px 56px; overflow-y: auto; scrollbar-width: none; flex: 1; }
.card-content::-webkit-scrollbar { display: none; }
.contact { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; flex-direction: column; gap: 3px; }
.contact-label { font-size: 10px; font-weight: 500; color: var(--ink-ghost); text-transform: uppercase; letter-spacing: 0.10em; }
.contact-value { font-size: 15px; font-weight: 400; color: var(--ink); text-decoration: none; transition: color 150ms ease; }
.contact-value:hover { color: var(--ink-secondary); }
.contact-value:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.work-list { list-style: none; display: flex; flex-direction: column; margin-top: 32px; }
.work-list li { font-size: 14px; font-weight: 400; color: var(--ink-mid); line-height: 1.5; padding: 6px 0; cursor: default; }
.work-list li[data-description] { cursor: pointer; }
.work-list li[data-description]:hover { color: var(--ink); }
.work-list li.active { color: var(--ink); }
.item-description { font-size: 13px; font-weight: 400; font-style: italic; color: var(--ink-secondary); line-height: 1.6; padding: 6px 0 8px 0; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 250ms ease, max-height 250ms ease; }
.item-description.visible { opacity: 1; max-height: 120px; }
@media (max-width: 600px) {
  .shell { padding: 0; align-items: flex-start; }
  .card { max-width: 100%; min-height: 100dvh; border: none; }
  .card-header { padding: 48px 28px 36px; }
  .card-content { padding: 32px 28px 48px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .shell { align-items: center; }
  .card { max-width: 560px; }
  .card-header { padding: 32px 48px 28px; }
  .card-content { padding: 24px 48px 36px; }
}
